Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 76521 invoked from network); 1 Dec 2003 18:47:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Dec 2003 18:47:26 -0000 Received: (qmail 2702 invoked by uid 500); 1 Dec 2003 18:47:00 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 2499 invoked by uid 500); 1 Dec 2003 18:46:58 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 2485 invoked from network); 1 Dec 2003 18:46:58 -0000 Received: from unknown (HELO sj-iport-4.cisco.com) (171.68.10.86) by daedalus.apache.org with SMTP; 1 Dec 2003 18:46:58 -0000 Received: from amer.unity.cisco.com (ipcbu-exchange.cisco.com [64.101.140.91]) by rtp-core-1.cisco.com (8.12.9/8.12.6) with SMTP id hB1Ikxxg012618 for ; Mon, 1 Dec 2003 13:47:00 -0500 (EST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: Newbie to struts with a question on text fields Date: Mon, 1 Dec 2003 12:46:59 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Newbie to struts with a question on text fields Thread-Index: AcO4O3+rYBkBvOm7R6CsRg6RYFZLlw== From: "Nandita Rajagopalan" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I have a textbox which is supposed to hold a numeric value - ie the = property corresponds to a numeric datatype in the Action form. If I = leave this textbox empty , I want my validate method to catch it and = print an error as this field is a required field. However, when I leave = this text empty, a value of 0 gets placed in the property's value . 0 = is an allowed value and hence no error gets dumped. How do I get around = this problem ? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org