web.xml中 error-page的正确用法

<error-page>  
        <error-code>404</error-code>  
        <location>/mvc/hello1?i=1</location>  
    </error-page>  
    <error-page>  
        <error-code>500</error-code>  
        <location>/WEB-INF/exception/500.jsp</location>  
    </error-page>  
    <error-page>  
        <exception-type>java.lang.Exception</exception-type>  
        <location>/WEB-INF/exception/error.jsp</location>  
    </error-page>  

  

posted @ 2016-07-19 16:40  V青山绿水  阅读(7729)  评论(0编辑  收藏  举报