You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2004/01/08 17:23:04 UTC

cvs commit: jakarta-struts/web/examples/WEB-INF/upload struts-config.xml

husted      2004/01/08 08:23:04

  Added:       web/examples/WEB-INF/upload struts-config.xml
  Log:
  Struts configuration for upload module.
  
  Revision  Changes    Path
  1.1                  jakarta-struts/web/examples/WEB-INF/upload/struts-config.xml
  
  Index: struts-config.xml
  ===================================================================
  <?xml version="1.0" encoding="iso-8859-1"?>
  <!DOCTYPE struts-config SYSTEM "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
  <struts-config>
    <form-beans>
      <form-bean name="uploadForm" type="org.apache.struts.webapp.upload.UploadForm" />
    </form-beans>
    <action-mappings>
      <action path="/upload" forward="/upload.jsp" />
      <!-- Upload Action -->
      <action path="/upload-submit" type="org.apache.struts.webapp.upload.UploadAction" name="uploadForm" scope="request" input="/upload.jsp">
        <forward name="display" path="/display.jsp" />
      </action>
    </action-mappings>
    <!-- This is where you set the maximum file size for your file uploads.
           -1 is an unlimited size. If you
           don't specify this here, it defaults to -1. -->
    <controller maxFileSize="2M" />
  </struts-config>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org