Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Accessing Application Resources file

chamal desilva

2006-12-21

Replies:

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: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.