You can wrap almost any exception in a ServletException and rethrow it
that way.
The ServletException class allows you to call one of four constructors:
1) <<no parameters>>
2) String
3) String, Throwable
4) Throwable
===
try{
//some code here that may throw a SQLException...
}catch(SQLException se)
throw new ServletException(se);
}finally{
//remember to close any connections here!
}
===
Larry
>>> [EMAIL PROTECTED] 05/02/02 05:49AM >>>
But I want the exception to be caught in the error.jsp page, not do a
try
{...} catch{...} inside the doPost body.
I don't know if I explained it correctly but is there a simple solution
to
this problem ?