Exception Based
<error-page>
<exception-type>java.lang.ArithmeticException</exception-type>
<location>/ExceptionError.jsp</location>
</error-page>
HTTP status code based
<error-page>
<error-code>404</error-code>
<location>/NotFound.jsp</location>
</error-page>
No comments:
Post a Comment