svn commit: r917388 - in /websites/production/struts/content/development/2.x/docs: file-upload.html objectfactory.html ognl.html
Author: lukaszlenart Date: Fri Jul 25 15:44:19 2014 New Revision: 917388 Log: Updates production Modified: websites/production/struts/content/development/2.x/docs/file-upload.html websites/production/struts/content/development/2.x/docs/objectfactory.html websites/production/struts/content/development/2.x/docs/ognl.html Modified: websites/production/struts/content/development/2.x/docs/file-upload.html == --- websites/production/struts/content/development/2.x/docs/file-upload.html (original) +++ websites/production/struts/content/development/2.x/docs/file-upload.html Fri Jul 25 15:44:19 2014 @@ -138,33 +138,19 @@ under the License. -The Struts 2 framework provides built-in support for processing file uploads that conform to http://www.ietf.org/rfc/rfc1867.txt"; rel="nofollow">RFC 1867, "Form-based File Upload in HTML". When correctly configured the framework will pass uploaded file(s) into your Action class. Support for individual and multiple file uploads are provided. When a file is uploaded it will typically be stored in a temporary directory. Uploaded files should be processed or moved by your Action class to ensure the data is not lost. Be aware that servers may have a security policy in place that prohibits you from writing to directories other than the temporary directory and the directories that belong to your web application. +The Struts 2 framework provides built-in support for processing file uploads that conform to http://www.ietf.org/rfc/rfc1867.txt"; rel="nofollow">RFC 1867, "Form-based File Upload in HTML". When correctly configured the framework will pass uploaded file(s) into your Action class. Support for individual and multiple file uploads are provided. When a file is uploaded it will typically be stored in a temporary directory. Uploaded files should be processed or moved by your Action class to ensure the data is not lost. Be aware that servers may have a security policy in place that prohibits you from writing to directories other than the temporary directory and the directories that belong to your web application./*/**/ +/*]]>*/ DependenciesBasic UsageUploading Multiple Files Uploading Multiple Files using ArraysUploading Multiple Files using Lists Advanced Configuration File Size LimitsFile TypesError MessagesTemporary DirectoriesAlternate Libraries - - -Dependencies - -The Struts 2 framework leverages add-on libraries to handle the parsing of uploaded files. These libraries are not included in the Struts distribution, you must add them into your project. The libraries needed are: - - Library URL Struts 2.0.x Struts 2.1.x Commons-FileUpload http://commons.apache.org/fileupload/";>http://commons.apache.org/fileupload/ 1.1.1 1.2.1 Commons-IO http://commons.apache.org/io/";>http://commons.apache.org/io/ 1.0 1.3.2 - - -If you are using Maven then you can add these libraries as dependencies in your project's pom.xml. - -Struts 2.0.x File Upload Dependencies -Dependencies
The Struts 2 framework leverages add-on libraries to handle the parsing of uploaded files. These libraries are not included in the Struts distribution, you must add them into your project. The libraries needed are: