aspose file tools*
The moose likes Struts and the fly likes How to read ApplicationResources file from the action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to read ApplicationResources file from the action" Watch "How to read ApplicationResources file from the action" New topic
Author

How to read ApplicationResources file from the action

Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
Could some one tell me , how can I read a property from ApplicationResources.properties file in my action class.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Action has a great method of getResources(request) which returns a MessageResources and you can call getMessage(String key) on that.


A good workman is known by his tools.
Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
Thanks that works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read ApplicationResources file from the action
 
Similar Threads
How to stream the bytes of the file from the action?
how to read a file from an Action class?
About MVC-II Architecture
XML File Reading
Excel file manipulation