You can use MessageResources to read the properties file in Action class. In execute method, you can give like this.. MessageResources msgResource = getResources(request); This will read the message resource file specified in struts-config.xml (<message-resources parameter="ApplicationResources"/>
Then you can use getMessage() method on MessageResources to fetch the messages.
Joined: Jan 14, 2008
very many thanks
it is working fine.....
subject: how to read .properties file from action class