On Thu, 23 Aug 2001, Yuval wrote:
> Date: Thu, 23 Aug 2001 23:39:05 +0200
> From: Yuval <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> To: "Tomcat-User (E-mail)" <[EMAIL PROTECTED]>
> Subject: Redirect page after catching exception
>
> Hi,
>
> can someone help we with how to stop the servlet after catching exception
> and redirect the page to error page?
>
It's not clear exactly what you mean.
If your servlet *catches* an exception, then the error page mechanism
provided by the container does not get involved at all. You can use the
usual technique (RequestDispatcher.forward()) to forward control to an
error reporting page if you want.
The <error-page> declaration in web.xml is only invoked when your servlet
or JSP page *throws* an uncaught exception.
> Regards,
>
> Yuval
Craig