Page 461 says that the exception implicit object is available
only to error pages with an explicitly-defined page directive:
<%@ page isErrorPage="true" %>
However, in practice the implicit exception object is available to
the following code (errorPage.jsp):
<html>
<body>
${pageContext.exception}
</body>
</html>
And it is not avaolable to the following code (errorPage.jsp):
<html>
<body>
<%
out.print(exception.getMessage());
%>
</body>
</html>
The page that throws the exception is, badPage.jsp:
<%@ page errorPage="errorPage.jsp" %>
<html>
<body>
<%
int x = 10/0;
%>
</body>
</html>
Please explain me this problem. I am using
Tomcat 5 with IE 6.
I searched the forum before posting this, but I cannot find anything useful.
Advance thanks.