I've defined <%@ page errorPage="/error.jsp" %>
in the header that all JSP files include, to catch any unhandled exceptions and redirect to that error page instead of printing them. This works fine with one caveat - if error.jsp itself throws an exception, it will continuously redirect to itself in an infinite loop. I want to erase the errorPage value for just error.jsp so that it'll just print the exception as normal. I tried just redefining the errorPage property to be blank but I get the following error:
Page directive: illegal to have multiple occurrences of errorPage with different values (old: /error.jsp, new: )
Is there any way for me to overwrite that property? Or any other suggestions on how to prevent this issue?