cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rica...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp XSPProcessor.java
Date Sun, 23 Jan 2000 23:00:00 GMT
ricardo     00/01/23 15:00:00

  Modified:    src/org/apache/cocoon/processor/xsp XSPProcessor.java
  Log:
  Standardized on using Utils.getBasename to get XSP file absolute filename
  
  Revision  Changes    Path
  1.7       +4 -8      xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java
  
  Index: XSPProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XSPProcessor.java	2000/01/23 22:52:52	1.6
  +++ XSPProcessor.java	2000/01/23 23:00:00	1.7
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSPProcessor.java,v 1.6 2000/01/23 22:52:52 ricardo Exp $ --
  +/*-- $Id: XSPProcessor.java,v 1.7 2000/01/23 23:00:00 ricardo Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -60,6 +60,7 @@
   import javax.servlet.*;
   import javax.servlet.http.*;
   
  +import org.apache.cocoon.*;
   import org.apache.cocoon.parser.*;
   import org.apache.cocoon.transformer.*;
   import org.apache.cocoon.processor.*;
  @@ -71,7 +72,7 @@
    * This class implements the XSP engine.
    *
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version $Revision: 1.6 $ $Date: 2000/01/23 22:52:52 $
  + * @version $Revision: 1.7 $ $Date: 2000/01/23 23:00:00 $
    */
   public class XSPProcessor extends AbstractActor
     implements Processor, Configurable, Status
  @@ -293,12 +294,7 @@
         (HttpServletResponse) parameters.get("response");
   
       // Determine source document's absolute pathname
  -    String filename;
  -    if (request.getPathInfo() == null) {
  -      filename = request.getRealPath(request.getRequestURI()).replace('\\', '/');
  -    } else {
  -      filename = request.getPathTranslated();
  -    }
  +    String filename = Utils.getBasename(request, servletContext);
   
       File sourceFile = new File(filename);
       filename = sourceFile.getCanonicalPath();
  
  
  

Mime
View raw message