• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

validator...

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic