velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: jakarta-velocity/src/java/org/apache/velocity/servlet VelocityServlet.java
Date Tue, 11 Sep 2001 18:05:47 GMT
geirm       01/09/11 11:05:47

  Modified:    src/java/org/apache/velocity/servlet VelocityServlet.java
  Log:
  Removed the wrappers as they are no longer necessary.  This should cause
  no harm to anyone.  If does, we need a strategy to get rid of them...
  
  Revision  Changes    Path
  1.41      +3 -5      jakarta-velocity/src/java/org/apache/velocity/servlet/VelocityServlet.java
  
  Index: VelocityServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/servlet/VelocityServlet.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- VelocityServlet.java	2001/08/07 22:26:46	1.40
  +++ VelocityServlet.java	2001/09/11 18:05:47	1.41
  @@ -84,8 +84,6 @@
   import org.apache.velocity.context.Context;
   import org.apache.velocity.VelocityContext;
   
  -import org.apache.velocity.app.HttpServletRequestWrap;
  -import org.apache.velocity.app.HttpServletResponseWrap;
   import org.apache.velocity.app.Velocity;
   
   import org.apache.velocity.exception.ResourceNotFoundException;
  @@ -129,7 +127,7 @@
    * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
    * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
    * @author <a href="kjohnson@transparent.com">Kent Johnson</a>
  - * $Id: VelocityServlet.java,v 1.40 2001/08/07 22:26:46 geirm Exp $
  + * $Id: VelocityServlet.java,v 1.41 2001/09/11 18:05:47 geirm Exp $
    */
   public abstract class VelocityServlet extends HttpServlet
   {
  @@ -477,8 +475,8 @@
            *   problems 
            */
              
  -        context.put( REQUEST, new HttpServletRequestWrap( request ) );
  -        context.put( RESPONSE, new HttpServletResponseWrap( response ) );
  +        context.put( REQUEST,  request );
  +        context.put( RESPONSE, response );
   
           return context;
       }
  
  
  

Mime
View raw message