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 2002/06/20 10:59:33 UTC
DO NOT REPLY [Bug 10048] New: -
JSP forward removes ALL response wrappers
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=10048>.
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=10048
JSP forward removes ALL response wrappers
Summary: JSP forward removes ALL response wrappers
Product: Tomcat 4
Version: 4.0.3 Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: alanmspencer@yahoo.com
Hello,
I've found what I think is a bug in Jasper.
org.apache.jasper.runtime.PageContextImpl.forward (line 401)
while (response instanceof HttpServletResponseWrapper)
response = ((HttpServletResponseWrapper)response).getResponse();
Removes filter wrapped responses as well as JSP inlcude ones.
I think it should be:
while (response instanceof ServletResponseWrapperInclude)
response = ((ServletResponseWrapperInclude)response).getResponse();
This seems to fix the problem.
My problem is that I have a filter which wraps the response. When a forward
happens the arapping get's removed and the postprocessing of the response
get's skipped.
I'll send code to test this if required...
Thanks,
Alan.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>