struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject RE: Accessing message resources
Date Thu, 05 Apr 2007 13:41:44 GMT
--- David Harland <dharland@ufi.com> wrote:
> In struts 1 you could access the resource bundles
> using Resources.getMessage from any class. How do
you
> do the same in struts 2 using getText.

http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#getTexts(java.lang.String)

That returns a regular ResourceBundle with which you
can play whatever games you want.

d.



 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message