Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form validation error

 
Vish hari
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not an error but a warning.

Ananth Chellathurai
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic