Anil-

In your action, you already have access to the resource properties file. In any member method, as long as you have an instance of the request object, you can say:

// get the resources for this action servlet
MessageResources resources = this.getResources(request);

to retrieve the MR for whatever module your action is a part of. Then, you can call resources.getMessage("the.name.of.the.key.in.the.properties.file") to retrieve your i18n property.

Cheers,

-Adam

Anil Kumar T wrote:
Hi guys,




I would like ot know how to acess the resource properties from an action
class or subsequent DAO classes. Any help, links etc would be great.




Thanks & regards,

Anil.



Information transmitted by this e-mail is proprietary to Infinite
Computer Solutions and / or its Customers and is intended for use only
by the individual or the entity to which it is addressed, and may
contain information that is privileged, confidential or exempt from
disclosure under applicable law. If you are not the intended recipient
or it appears that this mail has been forwarded to you without proper
authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at [EMAIL PROTECTED] and delete this email from
your records.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to