Object aeObj = request.getAttribute(Action.ERROR_KEY);
       if (aeObj != null && aeObj instanceof ActionErrors) {
           ActionErrors ae =  (ActionErrors)aeObj;
           if (!ae.empty()) {
               ...

Scott

> -----Original Message-----
> From: Charlemagne L. Rey [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 12, 2001 12:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: handling the errors
> 
> 
> no, nothing to be sorry... thank you for your help.
> anyway, i'm moving on and i have this situation...
> i tried your idea, to forward to another page if ever
> i encounter an error. now, my problem is i do not know
> how to access the ActionErrors instane from my jsp
> error page, do you have any idea?
> 
> thanks a lot.
> 
> John Raley wrote:
> > 
> > Sorry, thought it was #2...
> > 
> > "Charlemagne L. Rey" wrote:
> > 
> > > i would like to have a separate jsp page for errors.
> > > from the choices that you've given me, it's #1.
> > >
> > > Anthony Martin wrote:
> > > >
> > > > I interpreted two possible questions form your message:
> > > >
> > > >         1. You want to have a JSP devoted to showing a 
> form and a separate
> > > > JSP devoted to showing the validation errors?
> > > >         2. You want to have a general error page for 
> handling exceptions
> > > > that occur.
> > > >
> > > > Which one were you asking?  Or was I wildly off base?
> > > >
> > > > Anthony
> > > >
> 

Reply via email to