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
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply 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: 4695

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.
 
 
subject: How to read ApplicationResources file from the action
 
Threads others viewed
how to read a file from an Action class?
XML File Reading
How to stream the bytes of the file from the action?
About MVC-II Architecture
Excel file manipulation
IntelliJ Java IDE