This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes anybody know how to get property  in a Form? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "anybody know how to get property  in a Form?" Watch "anybody know how to get property  in a Form?" New topic
Author

anybody know how to get property in a Form?

Amanda Fu
Ranch Hand

Joined: Jul 17, 2003
Posts: 31
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

Joined: Feb 05, 2003
Posts: 4727

<%
ResourceBundle resource = ResourceBundle.getBundle("ApplicationResources.properties");
String var = resource.getString("myKey");
%>


A good workman is known by his tools.
 
Consider Paul's rocket mass heater.
 
subject: anybody know how to get property in a Form?
 
Similar Threads
how to pass a string and variable as value on a tag?
html:link/bean message
Stale Value
Use logic:notEqual with form bean
bean:message in bean:define tag