aspose file tools*
The moose likes Struts and the fly likes validator... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validator..." Watch "validator..." New topic
Author

validator...

jetrin
Greenhorn

Joined: Aug 12, 2006
Posts: 3
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

Joined: Feb 15, 2005
Posts: 4864
Do you also have the entry:

errors.required={0} is required.

in your ApplicationResources.properties file?

If not, that's the problem.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validator...