web.xml配置error-page在IE下不起作用

来源:互联网 发布:hadoop2.6 hdfs java 编辑:程序博客网 时间:2024/05/21 10:25

解决方法:

  • 在错误页面加上这句代码:<% response.setStatus(200);%>
  • 记得在页面标识isErrorPage属性为true,如下

             <%@ page contentType="text/html; charset=UTF-8" isErrorPage="true" %>