You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mark R. Diggory" <md...@latte.harvard.edu> on 2002/02/17 05:22:03 UTC

exception-type in web.xml

I'm using tomcat 4.0.1.

While

    <error-page>
        <error-code>400</error-code>
        <location>/Error/Http/BadRequest.jsp</location>
    </error-page>

does route to error pages when proper status is set in the page. The 
following doesn't seem to work as well for exceptions.

    <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>/Error/ErrorPage.jsp</location>
    </error-page>

is this a known issue with tomcat 4.0.1? I cannot get it to work on my 
installation, please help.

-Mark Diggory



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: exception-type in web.xml

Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
Apologies... I was catching exceptions in a filter, stopping them from 
continuing on to the Engine...

Mark R. Diggory wrote:

> I'm using tomcat 4.0.1.
>
> While
>
>    <error-page>
>        <error-code>400</error-code>
>        <location>/Error/Http/BadRequest.jsp</location>
>    </error-page>
>
> does route to error pages when proper status is set in the page. The 
> following doesn't seem to work as well for exceptions.
>
>    <error-page>
>        <exception-type>java.lang.Exception</exception-type>
>        <location>/Error/ErrorPage.jsp</location>
>    </error-page>
>
> is this a known issue with tomcat 4.0.1? I cannot get it to work on my 
> installation, please help.
>
> -Mark Diggory
>
>
>
> -- 
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>