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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > 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 | [EMAIL PROTECTED] |
> > 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to