You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Smith <ps...@infonow.com> on 2003/07/17 19:32:41 UTC
JSP exception
Hi all,
Does anyone know how I can get access to the exception put into pageContext
on an error jsp page? I am trying to do logging from an action, but haven't
been able to get the exception to log it.
Thanks, Peter
--
Peter Smith
Software Engineer
InfoNow Corporation
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: JSP exception
Posted by Peter Smith <ps...@infonow.com>.
Hi all,
Looks like I was not specific enough. I have no problem getting the
exception object when an action throws an exception. Its when a jsp page
does. The status code is correct in request, but the exception just isn't
there. Anyone have a recommendation?
Thanks, Peter
--
Peter Smith
Software Engineer
InfoNow Corporation
> From: "Varun Garg" <va...@yahoo.com>
> Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Date: Thu, 17 Jul 2003 12:35:40 -0500
> To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
> Subject: RE: JSP exception
>
> The best way I like is to use the ExceptionHandler. Catch the exceptions
> and then do whatever you would like to do with it. You can call your
> error page after that.
>
> Varun
>
> -----Original Message-----
> From: Peter Smith [mailto:psmith@infonow.com]
> Sent: Thursday, July 17, 2003 12:33 PM
> To: Struts Users Mailing List
> Subject: JSP exception
>
>
> Hi all,
>
> Does anyone know how I can get access to the exception put into
> pageContext on an error jsp page? I am trying to do logging from an
> action, but haven't been able to get the exception to log it.
>
> Thanks, Peter
>
> --
> Peter Smith
> Software Engineer
> InfoNow Corporation
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: JSP exception
Posted by Varun Garg <va...@yahoo.com>.
The best way I like is to use the ExceptionHandler. Catch the exceptions
and then do whatever you would like to do with it. You can call your
error page after that.
Varun
-----Original Message-----
From: Peter Smith [mailto:psmith@infonow.com]
Sent: Thursday, July 17, 2003 12:33 PM
To: Struts Users Mailing List
Subject: JSP exception
Hi all,
Does anyone know how I can get access to the exception put into
pageContext on an error jsp page? I am trying to do logging from an
action, but haven't been able to get the exception to log it.
Thanks, Peter
--
Peter Smith
Software Engineer
InfoNow Corporation
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org