This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

anybody know how to get property in a Form?

 
Amanda Fu
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to get property from ApplicationResources.properties in a Form or in a Jsp.
How could i give the property value into a variable in Jsp? like:

I know it doesn't work, but that's what I want. <bean:message> can only display the property value, I need to put this value into a variable.
Or is there any way I can get property value easy in my Form?
Thanks.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%
ResourceBundle resource = ResourceBundle.getBundle("ApplicationResources.properties");
String var = resource.getString("myKey");
%>
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic