File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Struts Validation Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Struts Validation Framework" Watch "Struts Validation Framework" New topic
Author

Struts Validation Framework

Murtuza Akhtari
Ranch Hand

Joined: Aug 07, 2004
Posts: 108
Hi all,

I am using Struts validation. I have also enabled client side validations using JavaScript.

How-ever whn I perform validations, I get a javascript alert with

???en_US.errors.required???

which probably means tht my message resources are not being loaded properly. I have defined the default errors in the ApplicationResources.properties

and in the struts-config.xm, I invoke the message resources like so


Can somebody help me figure out wht I m doing wrong here???
Or can you tell me how to properly configure the message resources?


---<br />SCJP 1.4
Otis Gospodnetic
Author
Greenhorn

Joined: Dec 30, 2004
Posts: 23
You have to make sure you put that .properties file in the correct place in the WAR file. It needs to be in the classpath, so WEB-INF/classes is probably a good place to put it.


Lucene in Action: http://www.manning.com/lucene
 
 
subject: Struts Validation Framework
 
Threads others viewed
problem reg Validator
Validwhen validator client side javascript
Date Validations
both javascript and serverside validations running
Validwhen validator java script
MyEclipse, The Clear Choice