• 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");
%>
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!