See if this works: getResources(request).getMessage(request.getLocale(),"test.me");
getResources(request) is a method of Action. Hubert --- Jan Behrens <[EMAIL PROTECTED]> wrote: > Thanks Jim, > > RTFM I did (yoda would say ;) What I want to do though, is access the > localized messages from within my application code - not from within my > JSP's or Servlets but out of my logic. I could not find anything on this in > the manual yet. Am I beeing completely ignorant not seeing the obvious, or > is this not that easy? > > Thanks, Jan > > -----Original Message----- > From: Jim Barrows [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 14, 2004 6:20 PM > To: Struts Users Mailing List > Subject: RE: Access to message properties from within application > > > > > -----Original Message----- > > From: Jan Behrens [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 14, 2004 9:20 AM > > To: 'Struts Users Mailing List' > > Subject: RE: Access to message properties from within application > > > > > > Anyone? If the solution is to obvious, give me a hint. > > Obnoxious hint: > RTFM :) > > More polite: http://struts.apache.org/userGuide/struts-bean.html#message > > > > > > Thanks, Jan > > > > -----Original Message----- > > From: Jan Behrens [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 14, 2004 11:14 AM > > To: Struts Users Mailing List > > Subject: Access to message properties from within application > > > > > > Hi List, > > > > is there a way to access the language specific messages stored in my > > resource file from within my logics java code? I understand that I > > will probably need to specify the locale that I need - that should > > not be the > > problem though. > > > > TIA, Jan > > > > > > --------------------------------------------------------------------- > > 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] > > > > > > --------------------------------------------------------------------- > 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] > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]