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

[PATCH] Delay call to response.getOutputStream() to allow forwarding

           Summary: [PATCH] Delay call to response.getOutputStream() to
                    allow forwarding
           Product: Cocoon 2
           Version: Current CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This patch delays the response.getOutputStream() until right before it is needed.  
This allows a request to be sent to cocoon, but if cocoon cannot match a pipeline, the 
request can then be handled by the JSP engine.
The problem is by calling response.getOutputStream() too early, before it has been 
determined whether a pipeleine can be matched, the request cannot be forwarded to the 
JSP engine as it tries to call response.getWriter() which cannot be called once 
response.getOutputStream() has been called.
I'm working on a struts 1.1 plugin to use cocoon to handle the presentation but in 
order to allow the normal processing of unmatched requests, I need cocoon to delay the 
call to response.getOutputStream().

Reply via email to