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 2004/03/24 18:58:14 UTC

DO NOT REPLY [Bug 27910] - java.lang.NullPointerException at org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:143)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27910>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27910

java.lang.NullPointerException at org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:143)





------- Additional Comments From Joe@Germuska.com  2004-03-24 17:58 -------
Struts has some deep assumptions that you aren't creating your own form beans.
Some work has already happened to make it easier to ask Struts for instances of
form beans (instead of using "new") -- in nightly builds you can can call
RequestUtils.createActionForm(FormBeanConfig,ActionServlet)

http://jakarta.apache.org/struts/api/org/apache/struts/util/RequestUtils.html#createActionForm(org.apache.struts.config.FormBeanConfig,%20org.apache.struts.action.ActionServlet)

I think there are legitimate reasons to encourage people to use Struts to get
form bean instances rather than constructing them themselves.  I'd like to steer
this bug along the lines of making that work better instead of encouraging
people to instantiate their own form beans.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org