wood burning stoves*
The moose likes Struts and the fly likes Form validation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form validation error" Watch "Form validation error" New topic
Author

Form validation error

Vish hari
Greenhorn

Joined: Jul 21, 2008
Posts: 20
Hi Friends,

While doing validation in the action form, I am getting the following error.

Sep 24, 2008 1:48:10 PM org.apache.struts.util.PropertyMessageResources loadLocale
WARNING: Resource org/apache/struts/action/ActionResources_en_US.properties Not Found.
Sep 24, 2008 1:48:10 PM org.apache.struts.util.PropertyMessageResources loadLocale
WARNING: Resource org/apache/struts/action/ActionResources_en.properties Not Found.

Control goes inside validate method and and exits. The error comes in the following line.
errors.add("UserName",new ActionMessage("id"));

Please revert back if you know the solution

Thanks,
Vishnuvardhan
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
These are warning messages only and are nothing to worry about. Struts is just telling you that it found your browser set to the locale en_US and that there is no corresponding properties file with that suffix, so it's reverting to the default, which is ActionResources.properties. If you want these messages to go away, just copy ActionResources.properties to ActionResources_en_US.properties.


Merrill
Consultant, Sima Solutions
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

It is not an error but a warning.

Ananth Chellathurai


Ananth Chellathurai [Walk on software]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Form validation error
 
Similar Threads
Problem with validation in struts
Exception processing Jsp page in my struts application.
DynaValidatorForm validation
Exception during Struts DynamicWebProject execution
Page not found