Sep 13, 2012

Error: javax.servlet.jsp.JspException: Missing message for key "label.common.button.submit" in bundle "(default bundle)" for locale en_US

Description:

We get this error while using ApplicationResources.properties file and using the entry as below
<message-resources parameter="resources.ApplicationResources"/> (where the property file name is ApplicationResources.properties). The folder "resources" is in classpath, at the same level as the "src" folder in Eclipse IDE.

Solution:

The path mentioned in the struts-config file for the ResourceBundle should be in sync with where it is found within the /WEB-INF file in the classpath, in the ".war" file that was deployed (or) in the Eclipse IDE.

<message-resources parameter="ApplicationResources"/> 

No comments:

Post a Comment