<%-- page settings --%> <%@ page isErrorPage = "true" %> <%@ page import = "java.util.*" %> <%@ page import = "java.sql.*" %> Error!

<% // scriptlet to determine exception type // and output beginning of error message if ( exception instanceof SQLException ) { %> A SQLException <% } // end if else if ( exception instanceof ClassNotFoundException ) { %> A ClassNotFoundException <% } // end else if else { %> An exception <% } // end else %> <%-- end scriptlet to insert fixed template data --%> <%-- continue error message output --%> occurred while interacting with the guestbook database.

The error message was:
<%= exception.getMessage() %>

Please try again later