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

前提:

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

但是跳转后显示为:

这是由于浏览器默认设置了

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

发布了11 篇原创文章 · 获赞 19 · 访问量 628

猜你喜欢

转载自blog.csdn.net/z_x_c_/article/details/104891556