vgritsenko    2002/10/28 21:42:41

  Modified:    src/webapp/WEB-INF Tag: cocoon_2_0_3_branch 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
  No                   revision
  
  
  No                   revision
  
  
  1.8.2.5   +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.8.2.4
  retrieving revision 1.8.2.5
  diff -u -r1.8.2.4 -r1.8.2.5
  --- web.xml   21 Sep 2002 15:06:44 -0000      1.8.2.4
  +++ web.xml   29 Oct 2002 05:42:41 -0000      1.8.2.5
  @@ -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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to