Saturday, April 23, 2005 01:07 PM
This has very little to do with JDBC. All you need to do is create a try catch block in your servlet or JSP. Something like this.
//your JDBC code here
//log your sqle some whay or the other so you know about it
//forward the request to your error page with a userfriendly message
Also, you can set the errorPage directive in your JSP's if you are using a JSP to run your JDBC code from.
Hope this helps,