Title: RE: Using Error Pages from servlets

What are the reasons for not using the following approach ?

Save the exception as a session object and call sendRedirect on the response object. This way you can redirect to a page even if you have written to the printWriter.


> -----Original Message-----
> From: Govind Seshadri [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 14, 1999 9:13 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Using Error Pages from servlets
>
>
> Arun Thomas wrote:
> >
> > Hello all,
> >
> > Can anyone point me to a resource that shows how error
> pages can be used
> > from a servlet.
> > I've got an error page that I am using for exceptions
> generated in my jsp
> > pages, and
> > I'd like to use the same one for  servlet exceptions. 
> Unfortunately, I
> > haven't been
> > able to find anyplace where the interface to an error page
> is spelled out.
> >
>
> See the jGuru JSP FAQ entry titled "Can I invoke a JSP error
> page from a
> servlet?" at:
>
http://www.jguru.com/jguru/faq/view.jsp?EID=1347

Govind

--
Govind Seshadri <[EMAIL PROTECTED]>
jGuru.com - Your Gateway to the Java Universe
http://www.jguru.com

===========================================================================
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