cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject cvs commit: xml-cocoon/webapp/WEB-INF web.xml
Date Wed, 25 Apr 2001 11:34:19 GMT
giacomo     01/04/25 04:34:19

  Modified:    src/org/apache/cocoon/servlet Tag: xml-cocoon2
                        CocoonServlet.java
               webapp/WEB-INF Tag: xml-cocoon2 web.xml
  Log:
  All parameters documented
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.87  +7 -3      xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java,v
  retrieving revision 1.1.4.86
  retrieving revision 1.1.4.87
  diff -u -r1.1.4.86 -r1.1.4.87
  --- CocoonServlet.java	2001/04/20 20:50:13	1.1.4.86
  +++ CocoonServlet.java	2001/04/25 11:34:11	1.1.4.87
  @@ -65,7 +65,7 @@
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
    * @author <a href="mailto:nicolaken@supereva.it">Nicola Ken Barozzi</a> Aisa
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.4.86 $ $Date: 2001/04/20 20:50:13 $
  + * @version CVS $Revision: 1.1.4.87 $ $Date: 2001/04/25 11:34:11 $
    */
   
   public class CocoonServlet extends HttpServlet {
  @@ -154,7 +154,7 @@
   
           // get allow reload parameter, default is true
           String value = conf.getInitParameter("allow-reload");
  -        this.allowReload = (value == null || value.equals("yes"));
  +        this.allowReload = (value == null || value.equals("yes") || value.equals("true"));
   
           this.createCocoon();
       }
  @@ -278,7 +278,11 @@
           }
   
           try {
  -            final String path = logDir + "cocoon.log";
  +            String logName = getInitParameter("log-name");
  +            if (logName == null) {
  +                logName = "cocoon.log"
  +            }
  +            final String path = logDir + logName ;
   
               final Category cocoonCategory = LogKit.createCategory("cocoon", logPriority);
               this.log = LogKit.createLogger(cocoonCategory, new LogTarget[] {
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.19  +63 -1     xml-cocoon/webapp/WEB-INF/Attic/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/webapp/WEB-INF/Attic/web.xml,v
  retrieving revision 1.1.2.18
  retrieving revision 1.1.2.19
  diff -u -r1.1.2.18 -r1.1.2.19
  --- web.xml	2001/04/25 09:08:22	1.1.2.18
  +++ web.xml	2001/04/25 11:34:17	1.1.2.19
  @@ -51,10 +51,34 @@
         <param-name>log-level</param-name>
         <param-value>DEBUG</param-value>
       </init-param>
  +
  +    <!--
  +      This parameter indicates the directory where Cocoon should put the log file.
  +      Note that this path must be specified as an absolute path into your filesystem
  +      and it is not rooted at the servlets context path. Also note that the path 
  +      must end with a file separator character.
  +      The default location is in the servlets context root at /WEB-INF/logs/.
  +
  +    <init-param>
  +      <param-name>log-dir</param-name>
  +      <param-value>/WEB-INF/logs</param-value>
  +    </init-param>
  +    -->
  +
  +    <!--
  +      This parameter specifies the name of the log file to use. It will be created in 
  +      the log-dir mentioned above.
  +      The default name is "cocoon.log".
  +
  +    <init-param>
  +      <param-name>log-name</param-name>
  +      <param-value>cocoon.log</param-value>
  +    </init-param>
  +    -->
     
       <!-- 
         Allow reinstantiating (reloading) of the cocoon instance. If this is
  -      set to yes, a new cocoon instance can be created using
  +      set to "yes" or "true", a new cocoon instance can be created using
         the request parameter "cocoon-reload".
       -->
       <init-param>
  @@ -77,6 +101,44 @@
           @database-driver@
         </param-value>
       </init-param>
  +  
  +    <!-- 
  +      This parameter allows to specify where Cocoon should put files 
  +      which are uploaded by the upload.xsp sample. The path specified 
  +      is always relative to the context path of the servlet. 
  +      The default directory is "image-dir" in the work-directory
  +
  +    <init-param>
  +      <param-name>upload-directory</param-name>
  +      <param-value>/WEB-INF/work/image-dir</param-value>
  +    </init-param>
  +    -->
  +  
  +    <!-- 
  +      This parameter allows to specify where Cocoon should put it's
  +      working files. The path specified is always relative to the 
  +      context path of the Cocoon servlet. 
  +      Usually it is obtained from the servlet engine.
  +
  +    <init-param>
  +      <param-name>work-directory</param-name>
  +      <param-value>/WEB-INF/work</param-value>
  +    </init-param>
  +    -->
  +  
  +    <!-- 
  +      This parameter allows to specify additional directories or jars 
  +      which Cocoon should put into it's own classpath.
  +      Note that you must separate them using the platforms path.separator
  +      (":" for *nix and ";" for Windows systems). Also not that absolute 
  +      pathes are take as such but relative pathes are rooted at the context
  +      root of the Cocoon servlet.
  +
  +    <init-param>
  +      <param-name>extra-classpath</param-name>
  +      <param-value>WEB-INF/extra-classes1:/[YOU-ABSOLUTE-PATH-TO]/own.jar</param-value>
  +    </init-param>
  +    -->
     </servlet>
   
     <servlet-mapping>
  
  
  

----------------------------------------------------------------------
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