Hi!
Igor Bljahhin wrote:
>
> hi, gurus!
>
> the following jsp code causes run-time error:
>
> test.jsp:
> .....
> <%@ page autoFlush="true" %>
> <jsp:include page="header.jsp" flush="true"/>
> </jsp:include>
> .......
>
> header.jsp:
> <%@ page errorPage="/errors/fatal.jsp" %>
> <%
> response.setHeader("Pragma", "No-cache");
> response.setHeader("Cache-Control", "No-cache");
> response.setDateHeader("Expires", 0);
> %>
>
> and i get Exception:
> java.io.IOException: Unable to clear JspWriter buffer, data already
> written to stream.
> at
> oracle.jsp.runtime.OracleJspWriter.clear(OracleJspWriter.java:429)
> at voip.login._jspService(login.java:200)
> at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:117).......
>
> have you any idea? i'm ready mad about this error:((
> i'm usind Apache webserver with oracle jsp-engine.
>
> Waiting for your answer,
> Igor
Try
[user@localhost currentdir]$ telnet your_server.your.domain 80
GET /where/is/it/header.jsp HTTP/1.0
Connection: Keep-Alive
User-Agent: Mozilla/4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
Host: your_server.your.domain
^^^^^^^^^ (blank string here)
and see if it sends a header before <jsp:include> tag. It probably sends
a header while <%@ page ... %> tag processing.
--
Regards,
Sergey Vorobiev
===========================================================================
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