Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • 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
  • 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">
 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic