A Change in Tomcat's JSP Error Page Handling??
843836Mar 24 2005 — edited Oct 11 2005Hi.
Whilst recently re-testing a JSP error page that was working fine 10 months ago, I found that the page is now not performing its intended function. Instead of the error page being displayed when the main JSP receives alphabetic data (from an HTML form), rather than the integer data that it is expecting, an HTTP 500 message saying that the main JSP cannot be displayed is generated by the browser.
The simple application behaves fine when valid data is entered and the JSP error page itself can be rendered directly (if a suitable check is made for the JSP implicit object 'exception' being equal to null).
Here is the (very ordinary) error page declaration line in the data manipulation JSP:
<%@ page errorPage="AdderError.jsp" %>
Here is the (equally ordinary) associated line in the JSP error page:
<%@ page isErrorPage="true" %>
The only changes that have taken place since I last tested these pages are the replacement of SDK1.4.2 with SDK1.5.0/5.0 and the replacement of Tomcat 4.1 with Tomcat 5.0.
It seems highly unlikely that the change of SDK could have led to this problem, but I suppose that there may be some change to Tomcat (or, more likely, version 2.4 of the servlet API) that has passed me by.
Can anybody shed light on the cause of this change in behaviour?
Any assistance would be greatly appreciated.
Cheers.
Jan