write error.jsp.
catch exception e and display error.jsp if error else xyz.jsp

-----Original Message-----
From: Rog�rio Saran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 09, 2000 8:29 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP Error Page with a servlet


Patrick, maybe you will not need to "code" the error handling. Some
servlet containers can handle servlet errors loading a standard page.
Take a look at Resin (www.caucho.com).


Patrick Buchanan wrote:
>
> I sent this out yesterday without a single reply.  Can anyone help me on
this?
> I'm new at Java so any advice would be appreciated.
>
> How do I use a JSP Error Page with a servlet?   I assume I use a
> RequestDispatcher object to forward the request and response objects to
the JSP,
> but does anyone have a code example of how to accomplish this?  Do I have
to
> store it as a request attribute and then have code in the JSP to pull it
out and
> print it to the screen?  What is the easiest way here?
>
> I want to use the same JSP error page for both my controller servlet and
the
> associated JSP's.
>
> pat
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to