jsp错误路径跳转设置
<error-page>
<error-code>400</error-code>
<location>/king.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/king.html</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/king.html</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/king.html</location>
</error-page>
<error-page>
<exception-type>java.lang.NullPointerException </exception-type>
<location>/king.html</location>
</error-page>
<error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/king.html</location>
</error-page>
作者:Honey_Badger —— 觉得这文章好,点一下左下角
出处:http://tk55.cnblogs.com/
posted on 2016-09-08 20:43 Honey_Badger 阅读(325) 评论(0) 编辑 收藏 举报