struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <hrab...@gmail.com>
Subject Re: MessageResources in ActionForm
Date Mon, 28 Mar 2005 19:50:08 GMT
It's easy to confuse them, and I check their javadocs each time I use them.

Globals.MESSAGES_KEY gives you access to MessageResources specific to a module.
Globals.MESSAGE_KEY contains the ActionMessages for that request.
Globals.ERROR_KEY contains the ActionErrors for that request.

Hubert

On Mon, 28 Mar 2005 14:44:38 -0500, Nidel, Mike <mike.nidel@lmco.com> wrote:
> You might want to check Globals.MESSAGES_KEY
> 
> although this isn't how I understood the MessageResources to
> work, I thought the ActionMessages was stored in the request
> under the Global.MESSAGES_KEY and not the MessageResources...
> 
> anybody else?
> 
> 
> > -----Original Message-----
> > From: Scott Purcell [mailto:spurcell@vertisinc.com]
> > Sent: Monday, March 28, 2005 2:39 PM
> > To: user@struts.apache.org
> > Subject: MessageResources in ActionForm
> >
> >
> > Hello,
> > I am trying to obtain a MessageResources object in a
> > ActionForm and I cannot figure out how.
> >
> > Prior to the new 1.2.4 struts I used this:
> >
> > MessageResources resources =
> >       (MessageResources)req.getAttribute( Action.MESSAGES_KEY );
> >
> > But it appears depreciated, or non existant in the action class now.
> >
> > Thanks,
> >
> >
> > Scott K Purcell | Developer | VERTIS |
> > 555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
> > 314.588.0720 Ext:1320 | spurcell@vertisinc.com |
> > http://www.vertisinc.com <http://www.vertisinc.com/>
> >
> > Vertis is the premier provider of targeted advertising, media, and
> > marketing services that drive consumers to marketers more
> > effectively.
> >
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message