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]
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
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ł
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
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
5 matches
Mail list logo