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 access AppResource.properties in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "access AppResource.properties in JSP" Watch "access AppResource.properties in JSP" New topic
Author

access AppResource.properties in JSP

manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
Friends
Is there any way to access messages in <b>ApplctionResource.properties</b> in JSP....!!!
yes..i can use <bean:message key ="some key to soome mesage" />
But my problem is i need to get this key into some scritping varible ...
Can we do that?? pllease guide me on this.
[ December 01, 2003: Message edited by: manasa teja ]

MT
Eric Sexton
Ranch Hand

Joined: Sep 12, 2003
Posts: 133
Check out the MessageResources class in org.apache.struts.util. I think that the massively overloaded getMessage method might help you out.
Nathalie Keymeulen
Greenhorn

Joined: Dec 02, 2003
Posts: 5
I think you can solve this using Struts-el :
http://jakarta.apache.org/struts/userGuide/building_view.html#struts-el
3.4.6 The Struts-EL Tag Library
I never used it myself but I red about it.
manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
Originally posted by Nathalie Keymeulen:
I think you can solve this using Struts-el :
http://jakarta.apache.org/struts/userGuide/building_view.html#struts-el
3.4.6 The Struts-EL Tag Library
I never used it myself but I red about it.

Thanks Nathalie!!
But my problem is ,I want to get value from appresources.properties into a scripting varibale in JSP..
manasa teja
Ranch Hand

Joined: May 27, 2002
Posts: 325
Any suggestions on this...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: access AppResource.properties in JSP