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 access AppResource.properties in JSP 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 "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...
 
Don't get me started about those stupid light bulbs.
 
subject: access AppResource.properties in JSP
 
Similar Threads
Spring Message Reources - Struts tags
JSP error: invalid arguments in call . PLEASE HELP
Having some multidimensional array problem in JSP
Spring security multiple login pages
Accessing scoped variables using EL