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>