Out of curiosity, why wouldn't you use: ResourceBundle.getBundle(propFile, Locale, getClass().getClassLoader());
Z. > hi, > > ServletActionContext.getServletContext(); > > Thanks, > > Nuwan > > ----- Original Message ----- > From: "Michał Letyński" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <user@struts.apache.org> > Sent: Tuesday, May 22, 2007 7:06 AM > Subject: Re: Access to MessageResource from action. > > >> Michał Letyński napisał(a): >>> How to do this in struts 2 ? >>> In struts 1 i had: >>> MessageResources resources = (MessageResources) >>> getServlet().getServletContext().getAttribute(org.apache.struts.Globals.MESS >>> AGES_KEY); >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> Sorry for that queestion, instead of getServlet()i need >> ServletActionContext. >> >> --------------------------------------------------------------------- >> 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]