Thanks Dave,
Your suggestion fixed it!
Best,
Steven
Dave Newton wrote:
Steven Hansen wrote:
The next problem, is that if I don't enter a value for the Age field
(int), when the form is redisplayed the Age field has been populated
with 0. If the Age field is left empty, I'd like the field to stay
empty when the form is redisplayed.
Use Integer, not int: the default value for an "int" is 0; the default
value for an Integer is null. The form field will display the value of
the property.
(Not sure about the first one and can't check now.)
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org