cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17612] New: - [PATCH] Delay call to response.getOutputStream() to allow forwarding
Date Mon, 03 Mar 2003 18:58:51 GMT
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: cocoon-dev@xml.apache.org
        ReportedBy: mrdon@twdata.org


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().

Mime
View raw message