当前位置: 代码迷 >> JavaScript >> 屏蔽jsp页面错误
  详细解决方案

屏蔽jsp页面错误

热度:56   发布时间:2012-09-28 00:03:35.0
屏蔽jsp页面异常
在web.xml进行如下配置,即可在页面出现异常转向相应页面
<error-page>
      <error-code>404</error-code>
       <location>/error.jsp</location>
</error-page>
<error-page>
      <error-code>500</error-code>
      <location>/error.jsp</location>
</error-page>
<error-page>
       <error-code>503</error-code>
       <location>/error.jsp</location>
</error-page>
  相关解决方案