Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validator...

 
jetrin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I'm using NetBeans 5.0 with Struts 1.2.7
And when I tried to use Validator, I got this error message:
java.lang.NullPointerException
at org.apache.commons.validator.ValidatorResources.internalProcessForms(ValidatorResources.java:464)

Here is my validation.xml files:


Here is the form in my jsp page:


And I added the following codes in ApplicationResource.properties:
AddressForm.name=Name
AddressForm.address=Address
AddressForm.emailAddress=E-mail address

Can somebody please help me with this?
Thanks before!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you also have the entry:

errors.required={0} is required.

in your ApplicationResources.properties file?

If not, that's the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic