I noticed a change in the Struts 1.1-b3 release that
ActionForms which use primitive wrapper Objects for
their bean properties, default to the corresponding
primitive type defaults instead of null if the
HttpRequest contains any value for the property name,
including empty string.

Example:
<input type="text" name="test" value=""/>
when submitted to ActionForm:
Integer test = myActionForm.getTest();

struts 1.0.2: test = null
struts 1.1-b3: test = 0

In this case I cannot tell if a user entered 0 or
nothing.

It appears this is related to changes in the Commons
BeanUtils package. Is this the desired behavior going
forward?


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to