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

RequestDispatcher.include() seems to be discarding the response's writer

           Summary: RequestDispatcher.include() seems to be discarding the
                    response's writer
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I wrote a bit of code to emulate much of what a servlet filter does, in a bean.
Basically, I created a ResponseWrapper that returned a custom OutputStream, from
which I could capture the output. However, with Tomcat 4.1.18 and 4.0.4, I saw
that getWriter() was being called, but the writer was not being used (I trapped
some of the various output methods and saw no use, even though the writer was a
wrapper for a ByteArrayOutputStream.) I tested this on other containers (Orion
and Resin) and got the expected behaviour, which leads me to believe that Tomcat
might be doing something incorrectly.

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

Reply via email to