tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp WarpContext.java
Date Thu, 14 Dec 2000 03:37:50 GMT
pier        00/12/13 19:37:50

  Modified:    catalina/src/share/org/apache/catalina/connector/warp
                        WarpContext.java
  Log:
  Set the appropriate context when invoking for a request.
  
  Revision  Changes    Path
  1.3       +3 -2      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp/WarpContext.java
  
  Index: WarpContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp/WarpContext.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- WarpContext.java	2000/12/08 15:33:43	1.2
  +++ WarpContext.java	2000/12/14 03:37:49	1.3
  @@ -69,7 +69,7 @@
    * @author <a href="mailto:pier.fumagalli@eng.sun.com">Pier Fumagalli</a>
    * @author Copyright &copy; 1999, 2000 <a href="http://www.apache.org">The
    *         Apache Software Foundation.
  - * @version CVS $Id: WarpContext.java,v 1.2 2000/12/08 15:33:43 pier Exp $
  + * @version CVS $Id: WarpContext.java,v 1.3 2000/12/14 03:37:49 pier Exp $
    */
   public class WarpContext extends StandardContext {
   
  @@ -95,7 +95,8 @@
   
       public void invoke(Request req, Response res)
       throws ServletException, IOException {
  -        if (DEBUG) this.debug("Invoked (available="+this.getAvailable()+")");
  +        if (DEBUG) this.debug("Invoking (available="+this.getAvailable()+")");
  +        if (req.getContext()==null) req.setContext(this);
           super.invoke(req,res);
       }
   
  
  
  

Mime
View raw message