Attached are patches against the current 3.2 branch and the 3.3 head
to fix a problem when JSPs forward requests.
The JspWriter buffer was not being cleared before the forward.
The modified file is:
src/share/org/apache/jasper/runtime/PageContextImpl.java.
Shawn


--
Shawn McMurdo              mailto:[EMAIL PROTECTED]
Lutris Technologies        http://www.lutris.com
Enhydra.Org                http://www.enhydra.org

Index: PageContextImpl.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
retrieving revision 1.13.2.3
diff -u -r1.13.2.3 PageContextImpl.java
--- PageContextImpl.java        2000/11/21 00:18:25     1.13.2.3
+++ PageContextImpl.java        2001/08/31 18:59:43
@@ -418,6 +418,9 @@
         throws ServletException, IOException
     {
         String path = getAbsolutePathRelativeToContext(relativeUrlPath);
+       if (out != null) {
+           out.clearBuffer();
+       }
         context.getRequestDispatcher(path).forward(request, response);
     }
 
Index: PageContextImpl.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
retrieving revision 1.20
diff -u -r1.20 PageContextImpl.java
--- PageContextImpl.java        2001/03/23 02:21:20     1.20
+++ PageContextImpl.java        2001/08/31 19:00:39
@@ -415,6 +415,9 @@
         throws ServletException, IOException
     {
         String path = getAbsolutePathRelativeToContext(relativeUrlPath);
+       if (out != null) {
+           out.clearBuffer();
+       }
         context.getRequestDispatcher(path).forward(request, response);
     }
 

Reply via email to