-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The doPost method of a servlet looks like this :
public class selectdetail extends HttpServlet {
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
What if in my doPost method I am using Object methods that throw other
exceptions, like SQLException. The Java compiler would not let me write :
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException,SQLException
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 ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE80Sfrh2ITK4xBkFERAgMfAJ95HwnlLTICnfOeOrK33jifllqhtACdFrXN
xtFJ/YRjwGEqQNESeKRTrAE=
=IMF1
-----END PGP SIGNATURE-----
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>