How can I catch all errors to same page from web.xml?

Posted by newbie on Stack Overflow See other posts from Stack Overflow or by newbie
Published on 2010-06-02T08:49:18Z Indexed on 2010/06/02 8:53 UTC
Read the original article Hit count: 172

Filed under:
|

I tried to use

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

but i dosen't catch 404 errors. How can I catch also 404 etc. errors to that same page ?

© Stack Overflow or respective owner

Related posts about web.xml

Related posts about custom-error-pages