You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Morten <li...@kikobu.com> on 2003/11/18 16:33:56 UTC
jsp:include'd struts action closes stream, and thus breaks page
Hi, running Tomcat 4.1.27. I have the following JSP:
<jsp:include page="../database/list.do">
<jsp:param name="dbid" value="<%=dbid%>"/>
</jsp:include>
Whatever comes after the above, does not make it to the browser.
Tomcat's log reports a closed stream:
----- Root Cause -----
java.io.IOException: Stream closed
at
org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:239)
at
org.apache.jasper.runtime.JspWriterImpl.clearBuffer(JspWriterImpl.java:194)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
Any suggestions on why the stream gets closed? The action associated to
list.do is trivial, and the page it forwards to, generates its output
nicely, and thus makes it back to the original page via the include. But
then things close.
Any help greatly appreciated.
Morten
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: jsp:include'd struts action closes stream, and thus breaks page
Posted by Morten <li...@kikobu.com>.
I found that Tomcat bug 21440 regards this. Basically JSP included pages
have direct access to the out stream, an naturally this is transparent
to the included page, so the struts framework closes the out stream
(prematurely seen in perspective of the including page).
Any suggestions for alternative include mechanims? Any interesting
taglibs out there that does this in a more predictable manner?
Thanks,
Morten
Morten wrote:
>
> Hi, running Tomcat 4.1.27. I have the following JSP:
>
> <jsp:include page="../database/list.do">
> <jsp:param name="dbid" value="<%=dbid%>"/>
> </jsp:include>
>
> Whatever comes after the above, does not make it to the browser.
> Tomcat's log reports a closed stream:
>
> ----- Root Cause -----
> java.io.IOException: Stream closed
> at
> org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:239)
> at
> org.apache.jasper.runtime.JspWriterImpl.clearBuffer(JspWriterImpl.java:194)
> at org.apache.jsp.index_jsp._jspService(index_jsp.java:70)
>
>
> Any suggestions on why the stream gets closed? The action associated to
> list.do is trivial, and the page it forwards to, generates its output
> nicely, and thus makes it back to the original page via the include. But
> then things close.
>
> Any help greatly appreciated.
>
> Morten
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org