Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access AppResource.properties in JSP

 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Eric Sexton
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestions on this...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic