tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime PageContextImpl.java
Date Thu, 20 Jun 2002 09:36:11 GMT
remm        2002/06/20 02:36:11

  Modified:    jasper2/src/share/org/apache/jasper/runtime
                        PageContextImpl.java
  Log:
  - Only unwrap Jasper added include wrappers. Otherwise, filters whcih would
    have wrapped the response would have their filters removed when a forward
    is done in a JSP.
  - Patch submitted by Alan Spencer <alanmspencer at yahoo.com>
  - Bugzilla 10048.
  
  Revision  Changes    Path
  1.11      +6 -5      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java
  
  Index: PageContextImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- PageContextImpl.java	11 Jun 2002 23:16:34 -0000	1.10
  +++ PageContextImpl.java	20 Jun 2002 09:36:10 -0000	1.11
  @@ -412,8 +412,9 @@
   	}
   
   	// Make sure that the response object is not the wrapper for include
  -	while (response instanceof HttpServletResponseWrapper)
  -	    response = ((HttpServletResponseWrapper)response).getResponse();
  +	while (response instanceof ServletResponseWrapperInclude) {
  +	    response = ((ServletResponseWrapperInclude)response).getResponse();
  +        }
   
           String path = getAbsolutePathRelativeToContext(relativeUrlPath);
           String includeUri 
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message