This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MessageResource error

krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<message-resources parameter="MessageResources" />
<message-resources key="test" parameter="TestMessageResources" null="false" /> is in /WEB-INF/classes.

form.firstName=First Name.
form.lastName=Last Name.
form.emailID=Email ID.

JSP files:

<bean:message bundle="test" key="form.firstName" />: <html:text property="firstName"/><br>
<bean:message bundle="test" key="form.lastName" />: <html:text property="lastName"/><br>
<bean:message bundle="test" key="form.emailID" /> : <html:text property="email"/><br>
<bean:message bundle="test" key="form.password" /> : <html:text property="password"/><br>

This is what i get

???en_US.form.emailID??? :
???en_US.form.password??? :

When I include the keys in MessageResources, the default file,and change my jsp, it works fine.
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic