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

May be error in _jspService() -> out.flushBuffers()

           Summary: May be error in _jspService() -> out.flushBuffers()
           Product: Tomcat 3
           Version: 3.1.1 Final
          Platform: All
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


i have implements HttpServletResponse 
after that release getWriter()

my JSP pages is extends of special class where using 

MyHttpServletResponse zResponse;
...
_jspService (request, zResponse)

in Tomcat 3.2.x all works fine, but in 3.3.1 not works.

Now compiled JSP page looks like:
public void _jspService(HttpServletRequest request, HttpServletResponse  
response)throws java.io.IOException, ServletException {
...
        } finally {
            if (out instanceof org.apache.jasper.runtime.JspWriterImpl) { 
                ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
            }
            if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
        }

In tomcat 3.2.X 
            if (out!=null ) { 
                out.flush();
            }
 
Now tomcat using flushBuffer() this is not good becouse:

in JSPWriterImpl out is not flushing, and last data in buffer of JSPWriterImpl is 
missed, and not flushed to response.out

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to