This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Form validation error
 
jQuery in Action, 3rd edition