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


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 and struts
>Date: Thu, 23 May 2002 10:57:22 -0400
>
>I am using the error-page elements in the web.xml file.  It looks like 
>this.
>
>   <error-page>
>     <exception-type>javax.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 errorpage.jsp correctly.  However, the page is not finding an 
>exception that should be specified in the request attribute.  I have used 
>this page successfully in the past when specifying the error page at the 
>jsp level.
>
>Has anyone seen this behavior in the past?
>
>thanks
>
>Jeremy




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to