You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/11/24 16:49:35 UTC

DO NOT REPLY [Bug 5061] New: - Improper flush in JspRuntimeLibrary.java

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5061>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5061

Improper flush in JspRuntimeLibrary.java

           Summary: Improper flush in JspRuntimeLibrary.java
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kroll@alltel.net


I believe there is a bug in the Jasper source file runtime/JspRuntimeLibrary.java. In the 
include() method there is a call to out.flush(). The problem is that out may be a BodyContent 
object which is prohibited from being flushed and immediately throws an exception. I changed 
this to read

        if (flush && !(out instanceof BodyContent))
            out.flush();

and my 
problems were solved.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>