<error-page>
<error-code>错误编码</error-code>
<location>转发路径</location>
</error-page>
如:
<error-page><error-code>404</error-code><location>/error.jsp</location></error-page>
配置错误类型转发
<error-page><error-type>错误类型</error-type><location>转发路径</location></error-page>
如:
<error-page>
<exception-type>java.lang.NumberFormatException</exception-type>
<location>/error.jsp</location>
</error-page>