behaves. It seems that he executed t...">

Understanding the JSP attribute errorPage

I set up a simple test to see how <% @page errorPage = "error.jsp"%> behaves. It seems that he executed the indicated page "error.jsp" when I throw an exception, but if I test syntax errors such as the absence of ";", I still get the tomcat error page. Am I missing something or shouldn't execute the error page for any type of error?

+4
source share
1 answer

The JSP error page is only for runtime errors (when the page loads), tomcat errors are compilation errors when the servlet container tries to compile your JSP.

+6
source

All Articles