Hi,

In your action class you can get the resources by using getResources() method

eg:-

getResources(request).getMessage("name");


Thanks,

Nuwan.


----- Original Message ----- From: "chamal desilva" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Friday, December 22, 2006 4:13 AM
Subject: Accessing Application Resources file


Hi,

I want to retireve a message from application
resources file.

This is my code..

resources
=(MessageResources)pageContext.getRequest().getAttribute(
Action.MESSAGES_KEY );

format  = (String)
resources.getMessage("display.currency" );

This works fine. But only issue is that
Action.MESSAGES_KEY is deprecated.

Is there a much standard way to do this.

Thanking you,
Chamal.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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



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

Reply via email to