You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jm...@apache.org on 2002/05/19 05:10:09 UTC

cvs commit: jakarta-turbine-2/src/java/org/apache/turbine Turbine.java

jmcnally    02/05/18 20:10:09

  Modified:    src/java/org/apache/turbine Turbine.java
  Log:
  remove code that was closing the response writer.  There is not much
  benefit in doing so, and it can cause problems.  E.g.  Another servlet
  includes the Turbine servlet using a RequestDispatcher.  If that
  servlet then tries to add more content to the response, it will fail.
  
  Revision  Changes    Path
  1.18      +1 -16     jakarta-turbine-2/src/java/org/apache/turbine/Turbine.java
  
  Index: Turbine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/Turbine.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Turbine.java	29 Apr 2002 20:41:45 -0000	1.17
  +++ Turbine.java	19 May 2002 03:10:09 -0000	1.18
  @@ -117,7 +117,7 @@
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
    * @author <a href="mailto:sean@informage.net">Sean Legassick</a>
    * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>
  - * @version $Id: Turbine.java,v 1.17 2002/04/29 20:41:45 jmcnally Exp $
  + * @version $Id: Turbine.java,v 1.18 2002/05/19 03:10:09 jmcnally Exp $
    */
   public class Turbine
       extends HttpServlet
  @@ -581,21 +581,6 @@
           }
           finally
           {
  -            // Make sure to close the outputstream when we are done.
  -            // Note: not for redirects, when we must not get a printwriter on 
  -            // the response output stream.
  -            if (!requestRedirected)
  -            {
  -                try
  -                {
  -                    data.getOut().close();
  -                }
  -                catch (Exception e)
  -                {
  -                    // Ignore.
  -                }
  -            }
  -
               // Return the used RunData to the factory for recycling.
               RunDataFactory.putRunData(data);
           }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>