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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • 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 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=""/>

<bean:message bundle="myResources" key="registration.button.cancel"/>


the following are the only lines in my
registration.text.ip=Enter any input 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">


<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
    Bookmark Topic Watch Topic
  • New Topic