Reputation:
I setup a simple test to see how <%@ page errorPage="error.jsp" %> behaves. It seems to execute the said page "error.jsp" when I throw an exception, but if I test syntax errors like missing a ";", I am still getting the tomcat error page. Am I missing something or shouldnt this execute the error page on any type of error?
Upvotes: 4
Views: 456
Reputation: 37267
The JSP error page is only for run-time errors (when the page is loaded), the tomcat errors are compile errors when the servlet container tries to compile your JSP.
Upvotes: 6