| Author |
javax.servlet.jsp.JspException: Missing message for key "registration.text.ip"
|
Prakash Mani - Attur
Ranch Hand
Joined: Oct 08, 2009
Posts: 100
|
|
i m getting the following error when i try to use <bean:message> tag in my jsp file. I have my ApplicationResources.properties file in WEB-INF/ApplicationResources.....
the following code is in my struts-config.xml
<message-resources parameter="/WEB-INF/ApplicationResources" key="myResources" null="true"></message-resources>
the following code is in my input.jsp
<html:form action="/userRegistration" >
<bean:message bundle="myResources" key="registration.text.ip"/>
<html:text property="ip" size="25"></html:text>
<bean:message bundle="myResources" key="registration.button.save"/>
<html:submit></html:submit>
<bean:message bundle="myResources" key="registration.button.cancel"/>
<html:cancel></html:cancel>
</html:form>
the following are the only lines in my ApplicationResources.properties
registration.text.ip=Enter any input
registration.button.save=Submit me
registration.button.cancel=Cancel me
Please give solution to this problem..I m been stucked by this problem for two days...Please help..Thanks in advance..
|
 |
Prakash Mani - Attur
Ranch Hand
Joined: Oct 08, 2009
Posts: 100
|
|
hai i asked my TL. he found it in a second.. the problem is in my struts-config.xml..
for the parameter attribute use
<message-resources parameter="ApplicationResources" key="myResources" null="true">
instead
<message-resources parameter="/WEB-INF/ApplicationResources" key="myResources" null="true">
|
 |
 |
|
|
subject: javax.servlet.jsp.JspException: Missing message for key "registration.text.ip"
|
|
|