Access to MessageResource from action.

2007-05-21 Thread Michał Letyński
How to do this in struts 2 ? In struts 1 i had: MessageResources resources = (MessageResources) getServlet().getServletContext().getAttribute(org.apache.struts.Globals.MESSAGES_KEY); - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Access to MessageResource from action.

2007-05-22 Thread Michał Letyński
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.MESSAGES_KEY); - To unsubscr

Re: Access to MessageResource from action.

2007-05-22 Thread Nuwan Chandrasoma
hi, ServletActionContext.getServletContext(); Thanks, Nuwan - Original Message - From: "Michał Letyński" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 22, 2007 7:06 AM Subject: Re: Access to MessageResource from action. Michał

Re: Access to MessageResource from action.

2007-05-22 Thread Zoran Avtarovski
quot; <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > 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 st

Re: Access to MessageResource from action.

2007-05-22 Thread Jeromy Evans
Hi Michał, Although that approach will work, if you're creating a new message resource bundle you may prefer the new Struts2 approach described at http://struts.apache.org/2.x/docs/localization.html and demonstrated at http://www.planetstruts.org/struts2-mailreader/Tour.do. Essentially you c