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.
-----Original Message----- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 05 April 2007 12:45 To: Struts Users Mailing List Subject: Re: Accessing message resources --- David Harland <[EMAIL PROTECTED]> wrote: > How do you use ognl to access resources outside of a class that > extends ActionSupport. eg the struts 2 equivalent to > Resources.getMessage but > getText() instead I'm not aware that you'd normally use OGNL for that; the <s:text.../> and <s:i18n.../> tags are what (I think?) would be used on a JSP page. The last I heard there were some issues with <s:i18n.../> for 2.0.6; searching JIRA may shed some light on current status. d. ________________________________________________________________________ ____________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - ------ ML {UFI} ______________________________________________________________________ Ufi Limited Registered in England No. 3980770 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP learndirect Solutions Ltd Registered in England No. 5081669 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP UFI Charitable Trust Registered in England No. 3658378 Registered Charity No. 1081028 Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP This email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]