http://www.onjava.com/pub/a/onjava/2003/07/30/jakartastruts.html?page=2
On 5/12/05, Néstor Boscán <[EMAIL PROTECTED]> wrote:
> Hi
>
> Does somebody know how I can get the ActionErrors object from the request???
>
> Regards,
>
> Néstor Boscán
>
>
--
____
http://javaboutique.internet.com/tutorials/excep_struts/
A good article
Handling Messages, Errors and Exceptions in Struts 1.1
> Hi
>
> Does somebody know how I can get the ActionErrors
> object from the request???
>
> Regards,
>
> Néstor Boscán
>
__
Hello,
There is the "nice" way (tags) - which I deduce from a previous posting you
already know - and then there are many "dirty" ways. For instance, you can
access it directly. However, in that case, you have to find out the key
under which Struts stores that object. There is one, that I can assu
Hi Néstor,
You can do that with the following code:
ActionErrors errors = (ActionErrors) request.getAttribute(Globals.ERROR_KEY);
Aladin
> Hi
>
> Does somebody know how I can get the ActionErrors object from the
> request???
>
> Regards,
>
> Néstor Boscán
>
-
request.getAttribute(Globals.ERROR_KEY);
-Original Message-
From: Néstor Boscán [mailto:[EMAIL PROTECTED]
Sent: 12 May 2005 16:28
To: 'Struts Users Mailing List'
Subject: How to get the ActionErrors object from the request
Hi
Does somebody know how I can get the ActionErrors object f
the correct way is to use struts tag libraries otherwise you can do something
like
ActionMessages messages = (ActionMessages)
request.getAttribute("org.apache.struts.action.ERROR");
Allistair.
> -Original Message-
> From: Néstor Boscán [mailto:[EMAIL PROTECTED]
> Sent: 12 May
6 matches
Mail list logo