I have a page which is built up like this (actually all pages in the
application are/should be built up like this):

- bof
.
.
<%@ errorPage="error.jsp"%>
.
.
<jsp:include page="webheader.jsp" flush="true" />
.
.
- eof

It could occur that an exception is raised in the file 'webheader.jsp' how
can I redirect that error to the errorPage without getting
"java.lang.IllegalStateException: Cannot forward as OutputStream or Writer
has already been obtained".

Is it by default impossible to use an errorPage if the jsp:include tag is
used??

thanks,
--------------------------------
Frank Guchelaar, VCD Automatisering
Development & Support
Software Developer
---------------------------------

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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