JSP Error pages and Struts

2002-06-10 Thread Chris Hardin
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

error-pages and struts

2002-05-23 Thread Jeremy Mann
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

Re: error-pages and struts

2002-05-23 Thread SUPRIYA MISRA
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

RE: error-pages and struts

2002-05-23 Thread Jeremy Mann
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

Re: error-pages and struts

2002-05-23 Thread kris
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

RE: error-pages and struts

2002-05-23 Thread Jeremy Mann
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