struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nandita Rajagopalan" <>
Subject Newbie to struts with a question on text fields
Date Mon, 01 Dec 2003 18:46:59 GMT

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 ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message