I have declared each pages error page to be my error page and my error page
looks like this. When an Exception Occurs, I get redirected to the Error
page but I can't access the error reason.
Here is my error page
%@page language=java isErrorPage=true%
bean:define id=e name=exception
I am using the error-page elements in the web.xml file. It looks like this.
error-page
exception-typejavax.servlet.ServletException/exception-type
location/errorpage.jsp/location
/error-page
When a ServletException is thrown in my Action class it is being forwarded to the
try this on your error page
if (exception instanceof javax.servlet.ServletException)
System.out.println(Exception was found !!!);
From: Jeremy Mann [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: error-pages
The exception is not found. I looked at the generated java and the exception is
grabbed from the request but it is null.
-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: error-pages and struts
Just messing with this myself. I'm not sure if it's an issue with the
Servlet/JSP spec or the container (I'm using WLS 6.1.2), but I would
have expected that an exception thrown from a servlet would get dumped
into the request. It looks like you need to hang on to the exception
and explicitly
Yeah - I am using Weblogic 5.1. I was trying to avoid having to do that but I guess I
have to.
thanks
Jeremy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: Re: error-pages and struts
Just
6 matches
Mail list logo