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 2001/12/04 05:42:15 UTC
cvs commit: jakarta-turbine-3/src/java/org/apache/turbine/services/rundata DefaultTurbineRunData.java
jmcnally 01/12/03 20:42:15
Modified: src/java/org/apache/turbine/services/rundata
DefaultTurbineRunData.java
Log:
removed caching of the response Writer. This could possibly have been used
to redirect the output of a turbine app. However, it interfers with the
servlet2.3 response wrapper method of doing the same. As the setter is
protected i am doubtful this was being used.
Revision Changes Path
1.7 +3 -21 jakarta-turbine-3/src/java/org/apache/turbine/services/rundata/DefaultTurbineRunData.java
Index: DefaultTurbineRunData.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/services/rundata/DefaultTurbineRunData.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DefaultTurbineRunData.java 2001/11/14 22:00:24 1.6
+++ DefaultTurbineRunData.java 2001/12/04 04:42:15 1.7
@@ -97,7 +97,7 @@
* @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
* @author <a href="mailto:bhoeneis@ee.ethz.ch">Bernie Hoeneisen</a>
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
- * @version $Id: DefaultTurbineRunData.java,v 1.6 2001/11/14 22:00:24 jon Exp $
+ * @version $Id: DefaultTurbineRunData.java,v 1.7 2001/12/04 04:42:15 jmcnally Exp $
*/
public class DefaultTurbineRunData
extends RecyclableSupport
@@ -726,32 +726,14 @@
}
/**
- * Gets the print writer. First time calling this
- * will set the print writer via the response.
- *
+ * Gets the print writer. *
* @return a print writer.
* @throws IOException.
*/
public PrintWriter getOut()
throws IOException
- {
- // Check to see if null first.
- if (this.out == null)
- {
- setOut(res.getWriter());
- }
-
- return this.out;
- }
-
- /**
- * Sets the print writer.
- *
- * @param out a print writer.
- */
- protected void setOut(PrintWriter out)
{
- this.out = out;
+ return res.getWriter();
}
/**
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>