File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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?