cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/WEB-INF web.xml
Date Tue, 29 Oct 2002 05:42:41 GMT
vgritsenko    2002/10/28 21:42:41

  Modified:    src/webapp/WEB-INF web.xml
  Log:
  CocoonServlet upload behavior now configurable from the web.xml.
  Configuration parameters are: autosave-uploads, overwrite-uploads,
  upload-max-size. See web.xml for description.
  Thanks to Geoff Howard.
  
  Revision  Changes    Path
  1.20      +38 -4     xml-cocoon2/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/WEB-INF/web.xml,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- web.xml	21 Sep 2002 15:07:57 -0000	1.19
  +++ web.xml	29 Oct 2002 05:42:41 -0000	1.20
  @@ -23,7 +23,6 @@
         use the following servlet-class instead of the normal one
   
         <servlet-class>org.apache.cocoon.servlet.ParanoidCocoonServlet</servlet-class>
  -
       -->
       <servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class>
   
  @@ -139,6 +138,35 @@
       -->
   
       <!--
  +      Causes all files in multipart requests to be saved to upload-dir.
  +      Default is true.  Unsupported values will be interpreted as false.
  +    -->
  +    <init-param>
  +      <param-name>autosave-uploads</param-name>
  +      <param-value>false</param-value>
  +    </init-param>
  +
  +    <!--
  +      Specify handling of name conflicts when saving uploaded files
  +      to disk.  Acceptable values are deny, allow, rename (default).
  +      Files are renamed x_filename where x is an integer value incremented
  +      to make the new filename unique.
  +    -->
  +    <init-param>
  +      <param-name>overwrite-uploads</param-name>
  +      <param-value>rename</param-value>
  +    </init-param>
  +    
  +    <!--
  +      Specify maximum allowed size of the upload. Defaults to 10 Mb.
  +
  +    <init-param>
  +      <param-name>upload-max-size</param-name>
  +      <param-value>10000000</param-value>
  +    </init-param>    
  +    -->
  +
  +    <!--
         This parameter allows to specify where Cocoon should create its page
         and other objects cache. The path specified can be either absolute or
         relative to the context path of the servlet. On windows platform,
  @@ -200,9 +228,15 @@
       -->
   
       <!--
  -      This parameter allows you to select the request factory. Possible choices are as
follows:
  -          - org.apache.cocoon.components.request.MultipartRequestFactoryImpl
  -          - org.apache.cocoon.components.request.MaybeUploadRequestFactoryImpl
  +      This parameter allows you to select the request factory. Possible
  +      choices are as follows:
  +        - org.apache.cocoon.components.request.MultipartRequestFactoryImpl
  +          This is the default factory.
  +        - org.apache.cocoon.components.request.MaybeUploadRequestFactoryImpl
  +          You can opt in for this factory if maybeupload.jar is
  +          present.
  +        - org.apache.cocoon.components.request.SimpleRequestFactoryImpl
  +          This factory does not allow uploads.
       -->
       <init-param>
         <param-name>request-factory</param-name>
  
  
  

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