Unfortunately, the <exception-type> does not catch return code. I already have one <exception-type>java.lang.Exception</exception-type> which is a good umbrella for all exception an alike. However, it does not catch 404, for example.

Try this in your web.xml

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

401 and 403 are trickier, but this should solve most your your needs.

Lukas


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



Reply via email to