ITeye博客

定义错误页面

gutou9 · 2014-05-11 11:35 · Web · Web前端 · Markdown

<!-- 400错误 -->

<error-page>

<error-code>400</error-code>

<location>/index.jsp</location>

</error-page>

<!-- 404 页面不存在错误 -->

<error-page>

<error-code>404</error-code>

<location>/index.jsp</location>

</error-page>

<!-- 500 服务器内部错误 -->

<error-page>

<error-code>500</error-code>

<location>/index.jsp</location>

</error-page>

<error-page>

<exception-type>java.lang.Exception</exception-type>

<location>/index.jsp</location>

</error-page>

<error-page>

<exception-type>java.lang.NullPointerException</exception-type>

<location>/index.jsp</location>

</error-page>

 

<error-page>

<exception-type>javax.servlet.ServletException</exception-type>

<location>/index.jsp</location>

</error-page>

<error-page>

<exception-type>com.mongodb.MongoException</exception-type>

<location>/index.jsp</location>

</error-page>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。