This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes javax.servlet.jsp.JspException: Missing message for key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "javax.servlet.jsp.JspException: Missing message for key "registration.text.ip"" Watch "javax.servlet.jsp.JspException: Missing message for key "registration.text.ip"" New topic
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">
 
jQuery in Action, 2nd edition
 
subject: javax.servlet.jsp.JspException: Missing message for key "registration.text.ip"