web.xml配置错误页面转发
2016-12-07 09:29
393 查看
<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>
<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>
相关文章推荐
- web.xml配置错误页面
- web.xml中配置404等错误页面
- web.xml中DispatcherServlet的url-pattern配置错误导致JSP页面在浏览器中显示为源码
- JavaEE在web.xml中实现错误页面配置(error page)
- WEB.XML error-page 配置错误页面
- web.xml配置错误页面
- web.xml配置错误页面,及输出错误信息
- web.xml中配置错误页面
- 在web.xml配置错误信息跳转页面
- tomcat 可以在web.xml当中配置404 自定义错误页面
- 在web.xml文件中配置的欢迎页面显示的时候报404的错误
- JSP---web.xml中统一配置全站错误处理页面,提高网站的友好度
- SSM中web.xml中配置错误页面时<error-page> ()报错
- web.xml配置错误页面,及输出错误信息
- web.xml配置详解之欢迎页面和错误页面
- web.xml 错误页面的配置
- web.xml中配置错误页面不能跳转
- web.xml配置错误页面,及输出错误信息
- 关于web.xml中配置404错误跳转页面 在ie不能显示自定义错误页面的问题
- web.xml配置错误错误页面,及输出错误信息