Your jsp/servlet server probably has some form of -keepgenerated option on it.
Find this, turn it on, and you will be able to see the Servlets (.java file) that
is generated
for you when you compile a .jsp.

When you review the .java file you will see that a try catch block is put in your
_service method automatically when you have an error page declared.  Exceptions
that you do not explicitly catch in the jsp will make it to this try block.

The try block has a nested try block.

If the output has already be "committed", you will not hit the error page (because
headers have
already been written), instead you will hit the inner catch.  If output has not
been committed,
you will be redirected to the errorpage.

--
Tom

Thomas Preston
Vacation.com, Inc.

Masaoud wrote:

> Hi,
>
> I was just wondering, as to what the <%@ page errorPage="somePage.jsp"
> %> actually do ?
> When does this "somePage.jsp" get invoked ? Is it done automatically ?
> If  I have cases wherein there may be multiple errors for which I wish
> to standerdaize the error display, can I use a single "errorpage.jsp" to
> perform that ?
>
> Thanx
>
> Masaoud.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to