You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/05/13 20:32:11 UTC
DO NOT REPLY [Bug 19901] -
Validator can't handle null page value in DynaValidatorForm
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19901>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19901
Validator can't handle null page value in DynaValidatorForm
dgraham@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|Normal |Enhancement
------- Additional Comments From dgraham@apache.org 2003-05-13 18:32 -------
>From struts-config_1_1.dtd description of <form-property> initial attribute:
"String representation of the initial value for this property. If not specified,
primitives will be initialized to zero and objects initialized to null."
>From ActionServlet javadoc, "convertNull - If set to true, the numeric Java
wrapper class types (like java.lang.Integer) will default to null (rather than
0). (Since Struts 1.1) [false]".
If you make the effort to turn on convertNull and then specify a property with
no initial value, a NPE should be exactly what you expect. Changing to an
enhancement request for a more descriptive NPE error message...
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org