Hi Raphel,
Can you let me know why you have this peculiar requirement of
changing the signature of the doPost method ?
Rgds,
Chetan
___________________________________________________________________________
Chetan Wagle
Project Manager
Capstone IT Technologies Pvt. Ltd.
www.capstoneit.com
TeleFax: +91 (0)40 6786951
Email : [EMAIL PROTECTED]
___________________________________________________________________________
Legally privileged/Confidential Information may be contained in this
message. If you are not the addressee(s) legally indicated in this message
(or responsible for delivery of the message to such person), you may not
copy or deliver this message to anyone. In such case, you should destroy
this message, and notify us immediately. If you or your employer does not
consent to Internet e-mail messages of this kind, please advise us
immediately. Opinions, conclusions and other information expressed in this
message are not given or endorsed by my firm or employer unless otherwise
indicated by an authorised representative independent of this message.
Please note that despite using the latest virus software, neither my
employer nor I accept any responsibility for viruses and it is your
responsibility to scan attachments (if any).
Raphael wrote:
>-----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]>
>
>
>
--
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>