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