here, I did a little example, you can see it at
http://www.mycgiserver.com/~akravets/info2.jsp -----------------------------------------------
there are two files:
info2.jsp:
---------
<%@ page errorPage="error_info.jsp"%>
<html>
<body>
<%
int a = 5;
int b = 0;
int c = a/b; // here I divide by zero, WRONG, will cause exception
%>
<%=c%>
</body>
</html>
--------------------------------------------------
error_info.jsp:
---------------
<%@ page isErrorPage="true" %>
<html>
<body>
The name of the exception was:<%= exception.toString() %>
The message of the exception was: <%= exception.getMessage() %>
</body>
</html>
this page catches the errors in exception object.
All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson