首页 > 代码库 > xml常用的error-page

xml常用的error-page

  <error-page>            <error-code>404</error-code>            <location>/WEB-INF/jsp/errors/error.jsp</location>        </error-page>        <error-page>            <error-code>500</error-code>            <location>/WEB-INF/jsp/errors/error.jsp</location>        </error-page>        <error-page>            <error-code>414</error-code>            <location>/WEB-INF/jsp/errors/error.jsp</location>        </error-page>        <error-page>            <error-code>505</error-code>            <location>/WEB-INF/jsp/errors/error.jsp</location>        </error-page>        <error-page>            <error-code>400</error-code>            <location>/WEB-INF/jsp/errors/error.jsp</location>        </error-page>      <error-page>        <exception-type>java.lang.NullPointerException</exception-type>        <location>/WEB-INF/jsp/errors/error.jsp</location>    </error-page>

 

xml常用的error-page