xml-xang-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdier...@locus.apache.org
Subject cvs commit: xml-xang/java/src/org/apache/xang/xap XapSessionManager.java
Date Thu, 25 May 2000 19:55:30 GMT
mdierken    00/05/25 12:55:30

  Modified:    java/src/org/apache/xang/xap XapSessionManager.java
  Log:
  Use utility to deal with different getRealPath implementations.
  
  Revision  Changes    Path
  1.4       +17 -2     xml-xang/java/src/org/apache/xang/xap/XapSessionManager.java
  
  Index: XapSessionManager.java
  ===================================================================
  RCS file: /home/cvs/xml-xang/java/src/org/apache/xang/xap/XapSessionManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XapSessionManager.java	2000/03/14 00:55:33	1.3
  +++ XapSessionManager.java	2000/05/25 19:55:29	1.4
  @@ -65,6 +65,8 @@
   import org.apache.xang.net.http.object.impl.*;
   import org.apache.xang.net.http.object.impl.debug.*;
   
  +import org.apache.xang.util.ServletUtil;
  +
   //xml dom
   import org.apache.xerces.dom.*;
   
  @@ -84,7 +86,7 @@
        */
       protected String getDoc(IHTTPContext context)
       {
  -        String realPath;
  +        String realPath=null;
           String path;
           
           path = context.getRequest().getServletPath();
  @@ -96,7 +98,20 @@
           }
           else
           {
  +            realPath = ServletUtil.getRealPath(context);
  +/*            
  +            realPath = context.getRequest().getPathTranslated();
  +
  +            // from servlet path
  +            path = context.getRequest().getServletPath();
  +            realPath = context.getRequest().getRealPath(path);
  +            realPath = context.getServletContext().getRealPath(path);
  +
  +            // from path info
  +            path = context.getRequest().getPathInfo();
               realPath = context.getRequest().getRealPath(path);
  +            realPath = context.getServletContext().getRealPath(path);
  +*/
           }
   
           return realPath;
  @@ -205,6 +220,6 @@
           }
       }
       
  -    public final static String RCS_STRING = "$Workfile: XapSessionManager.java $ " + "$Revision:
1.3 $";
  +    public final static String RCS_STRING = "$Workfile: XapSessionManager.java $ " + "$Revision:
1.4 $";
   }
   
  
  
  

Mime
View raw message