As written by you, it's true.

for HTTP error codes, you need <error-code>, not <exception-type>

        <error-page>
                <error-code>404</error-code>
                <location>/error/404.jsp</location>
        </error-page>

That's a snip from our (working) web.xml in TC5.0.29


> -----Original Message-----
> From: Chris Cherrett [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, December 12, 2004 7:23 AM
> To: Tomcat Users List
> Subject: error-page not working properly
> 
> 
> Hello
> 
> I have searched this topic on google to find the following to be true:
> 
> catching 500 or 404 error does not work in Tomcat 5 like this
> 
> <error-page>
>       <exception-type>500</exception-type>
>       <location>/error.jsp</location>
>   </error-page>
> <error-page>
>       <exception-type>404</exception-type>
>       <location>/error.jsp</location>
>   </error-page>
> 
> Is this true?
> 
> This works for 500 but not 404.
> 
> <error-page>
>       <exception-type>java.lang.Throwable</exception-type>
>       <location>/error.jsp</location>
>   </error-page>
> 
> Is there a way to catch all exceptions that works in Tomcat 5
> 
> Thanks
> -- 
> Chris Cherrett
> Tracking Solutions International
> 1-877-TSIWARE
> www.tsiware.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to