Cannot find message resources under key org.apache.struts.action.MESSAGE
javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.
MESSAGE
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
Ans:
1- create a package: com.test.properties
2- under that package create a "Common.properties" file with this contents or just empty it:
#common module error message
error.common.name.required = Name is required.
#common module label message
label.common.name = UserName
label.common.button.submit = Submit
label.common.button.reset = Reset
3- just add the message-resource tag in struts-config.xml file as listed below:
<message-resources parameter="com.test.properties.Common"></message-
resources>
javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.
MESSAGE
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
Ans:
1- create a package: com.test.properties
2- under that package create a "Common.properties" file with this contents or just empty it:
#common module error message
error.common.name.required = Name is required.
#common module label message
label.common.name = UserName
label.common.button.submit = Submit
label.common.button.reset = Reset
3- just add the message-resource tag in struts-config.xml file as listed below:
<message-resources parameter="com.test.properties.Common"></message-
resources>
No comments:
Post a Comment