JSP使用errorpage内置对象无法正常跳转到指定错误页面

前提:

错误页面已经正确设置<%@ page errorPage="error.jsp" %>并且跳转页面也正确设置<%@ page isErrorPage="true">

但是跳转后显示为:

JSP使用errorpage内置对象无法正常跳转到指定错误页面

这是由于浏览器默认设置了JSP使用errorpage内置对象无法正常跳转到指定错误页面

打开浏览器设置,将勾选的此选项取消即可正常跳转错误页面