首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

异常页面跳转解决方法

2012-10-24 
错误页面跳转解决办法在web.xml中配置错误页面跳转如下: ? error-page ??? exception-typejava.lang.E

错误页面跳转解决办法

在web.xml中配置错误页面跳转如下:
? <error-page>
??? <exception-type>java.lang.Exception</exception-type>
??? <location>/error.html</location>
? </error-page>

? <!-- 页面不存在时跳转-->
? <error-page>
??? <error-code>500</error-code>
??? <location>/error.html</location>
? </error-page>
?
? <error-page>
??? <error-code>404</error-code>
??? <location>/error.html</location>
? </error-page>

热点排行