struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Ng" <evebi...@hotmail.com>
Subject Re: Detect errors in Action
Date Thu, 05 Sep 2002 18:05:57 GMT
thanks!  I thought there was a method or a way to see the ActionError is not
null or its length larger than 0 in the Action before the view with error
displayed

Billy Ng

----- Original Message -----
From: "John Yu" <john@scioworks.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Wednesday, September 04, 2002 6:39 PM
Subject: Re: Detect errors in Action


> Billy,
>
> What do you mean by "detecting any errors"? Does this work for you:
>
>    try {
>      ...
>    } catch(..) {
>      // set things into the request
>      // forward to the error page
>    }
>
>
> At 07:37 am 05-09-2002, you wrote:
> >Hi folks,
> >
> >Would anybody tell me if I can detect any errors occur in the Action?  It
> >is because i have some objects created in the Action.  If there is error,
> >I need to set the objects into the request becuase the view displayed.
> >
> >Thanks!
> >
> >Billy Ng
>
> --
> John Yu                       Scioworks Technologies
> e: john@scioworks.com         w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
>
> Scioworks Camino - "Don't develop Struts Apps without it!"
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>

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


Mime
View raw message