cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/environment/http HttpRequest.java
Date Thu, 14 Jun 2001 18:27:54 GMT
dims        01/06/14 11:27:53

  Modified:    src/org/apache/cocoon/environment/http Tag: cocoon_20_branch
                        HttpRequest.java
  Log:
  Fix for making Protected sub-sitemap sample work.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.2 +5 -2      xml-cocoon2/src/org/apache/cocoon/environment/http/HttpRequest.java
  
  Index: HttpRequest.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/environment/http/HttpRequest.java,v
  retrieving revision 1.1.1.1.2.1
  retrieving revision 1.1.1.1.2.2
  diff -u -r1.1.1.1.2.1 -r1.1.1.1.2.2
  --- HttpRequest.java	2001/06/07 16:45:32	1.1.1.1.2.1
  +++ HttpRequest.java	2001/06/14 18:27:42	1.1.1.1.2.2
  @@ -25,7 +25,7 @@
    * to provide request information for HTTP servlets.
    *
    * @author <a href="mailto:giacomo@apache,org">Giacomo Pati</a>
  - * @version CVS $Id: HttpRequest.java,v 1.1.1.1.2.1 2001/06/07 16:45:32 bloritsch Exp $
  + * @version CVS $Id: HttpRequest.java,v 1.1.1.1.2.2 2001/06/14 18:27:42 dims Exp $
    */
   
   public class HttpRequest implements Request {
  @@ -160,7 +160,10 @@
       }
   
       public Session getSession(boolean create) {
  -        return new HttpSession(this.req.getSession(create));
  +        javax.servlet.http.HttpSession session = this.req.getSession(create);
  +        if(session != null)
  +            return new HttpSession(session);
  +        return null;
       }
   
       public Session getSession() {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message