> That said, I don't know how you differentiate between
> messages and errors if you do that...
This two links on the Wiki explain a lot about ActionErrors and
ActionMessages usage...
http://wiki.apache.org/struts/ActionErrorsAndActionMessages?highlight=%28actionerrors%29
http://wiki.apache.org/
rs if you do that...
> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 28, 2005 5:08 PM
> To: Struts Users Mailing List; Hubert Rabago
> Subject: RE: MessageResources in ActionForm
>
>
> A follow up to this thread.
>
&g
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 2:10 PM
To: Struts Users Mailing List
Subject: Re: MessageResources in ActionForm
The API change occurred with the 1.1 release. With that release,
Action.MESSAGES_KEY was deprecated, as well as
t: Monday, March 28, 2005 1:51 PM
> To: Struts Users Mailing List; Hubert Rabago
> Subject: RE: MessageResources in ActionForm
>
>
> Is this an api change from 1.1? Does anyone know?
>
>
>
> -Original Message-
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Is this an api change from 1.1? Does anyone know?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 1:45 PM
To: Struts Users Mailing List
Subject: Re: MessageResources in ActionForm
Use Globals.MESSAGES_KEY .
On Mon, 28 Mar 2005 13:39:17
Use Globals.MESSAGES_KEY .
On Mon, 28 Mar 2005 13:39:17 -0600, Scott Purcell
<[EMAIL PROTECTED]> wrote:
> 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 =
>
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 Mo
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 [
8 matches
Mail list logo