• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.servlet.jsp.JspException: Missing message for key "registration.text.ip"

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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">
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic