I got this to work!!! Thanks.. Here is my
JSP page...
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%-- page settings --%>
<%@ page isErrorPage = "true" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.sql.*" %>
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Error Generated</title>
</head>
<body>
<font color="#FF0000" size="4"><strong>Error was Generated.</strong></font><br><br>
The error message was:<br>
<%= exception.getMessage() %> <br>
<br>
<%
if ( exception instanceof SQLException )
%>
<font color="#FF0000" size="4"><strong>An SQLException</strong></font>
</p>
This error could have been generated because the database is inactive or the
you tried to insert a duplicate value. <br>
<br>
Click <a href="main.jsp">HERE</a> to go back to the main menu.
</p>
<p class = "bigRed">Please try again</p>
</body>
</html>