Custom HTTP error page is not displayed in Internet Explorer

前端 未结 2 1798
-上瘾入骨i
-上瘾入骨i 2020-12-01 14:55

I am using Tomcat 7 and JSP pages. I would like to provide a custom error page for HTTP 500 errors.

What I did is to declare the custom error page as following in

2条回答
  •  情歌与酒
    2020-12-01 15:48

    Found that adding

    <% response.setStatus(200); %>
    

    to the error JSP page (i.e. before HTML tag) would fix the issue.

提交回复
热议问题