This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: anybody know how to get property in a Form?
 
Similar Threads
how to pass a string and variable as value on a tag?
Use logic:notEqual with form bean
bean:message in bean:define tag
Stale Value
html:link/bean message