Yet another one for the FAQ ;-).
An error-page element for a status code of 500 won't be invoked if the
Servlet/JSP throws an exception out of the service method. For that, you
need to have an error-page element with an exception-type, e.g.:
error-page
Hi,
I am using Tomcat/Struts and I am trying to catch errors in JSP pages
without luck. It only works if I put the %page errorPage=/MyError.jsp
% tag in the page. I tried to remove it and use the error-page in the
Web.xml but it didn't catch anything. What is wrong here?
The page which causes