If an exception is raised in one of my JSPs after a jsp:include tag i get
the following error in the error log but my error page is not displayed

"Attempt to clear a buffer that's already been flushed
        at
com.sun.server.http.pagecompile.jsp.runtime.JspWriterImpl.clear(JspWriterImp
l.java:115)
        at
pagecompile.jsp._meridian._userMaint._jspService(_userMaint.java:261)..."


eg if I run the following page

<%@ page language="java" errorPage="error.jsp" %>

<html>
<p>blah blah blah</p>

<jsp:include page="aPageWithLotsOfStuff.jsp" flush="true" />

<% int x = 4/0; %>

</html>

The result is "blah blah blah" on the screen and the buffer flushing error
is written to the webserver's error log.


If I run the following page

<%@ page language="java" errorPage="aPageWithLotsOfStuff.jsp" %>

<html>
<p>blah blah blah</p>

<% int x = 4/0; %>

<jsp:include page="apage.jsp" flush="true" />

</html>

The result is that my error page displays and shows me the divide by 0 stack
trace which is what I expect.

I searched the archives and found a reference to the buffer attribute for
the @page tag. However, no matter what I put here I still get the same
results.

Has anyone encountered this behaviour? Is there a workaround? Am I doing
something really stupid? Is this fixed in the latest JSP/Servlet
implementations?

I am using JSP1.0/JavaWebserver2.0/Windows NT4.0

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