I've configured error page in the DD as shown below:
Following are the contents of my notPage.jsp file:
It's quite surprising to note that when I remove the page directive the page is rendered when I type a wrong URL in the browser window. But, with the code as shown above, I get the browser default 404 error page. The only change I'm making is removing or retaining the page directive.
Any help shall be highly appreciated.
When you type the wrong url in the browser then make sure that the url includes the webapp context path in it which has defined the error entry in DD.
Yup, I'm making sure that the context path is correct.
If there is an error thrown on the error page, it will not display. Are you sure your page is debugged?
The only change is the page directive: <%@page isELIgnored="false" %>
I don't think there's any error here.