Date: 2005-03-02T22:16:55
Editor: DakotaJack
Wiki: Apache Struts Wiki
Page: StrutsUpload
URL: http://wiki.apache.org/struts/StrutsUpload
no comment
Change Log:
------------------------------------------------------------------------------
@@ -192,8 +192,8 @@
public UploadMultipartData(HttpServletRequest req,
List monitors,
- int fileSizeLimit,
- String encoding)
+ String encoding,
+ int fileSizeLimit)
throws UploadException,
IOException {
@@ -206,12 +206,13 @@
MultipartHandler handler = new UploadMultipartHandler();
- Object [] objects = new Object [] { req,monitors,
- new Integer(fileSizeLimit),
- parameterNames,
- files,
- UploadConstant.PARSER_TEMP_DIR,
- encoding };
+ Object [] objects = new Object [] { req, // 0
+ encoding, // 1
+ monitors, // 2
+ parameterNames, // 3
+ files, // 4
+ UploadConstant.PARSER_TEMP_DIR, // 5
+ new Integer(fileSizeLimit) }; // 6
handler.handleRequest(objects);
}
@@ -256,22 +257,22 @@
public void handleRequest(Object [] params)
throws IOException {
- handleRequest((HttpServletRequest)params[0],
- (List)params[1],
- ((Integer)params[2]).intValue(),
- (Map)params[3],
- (Map)params[4],
- (String)params[5],
- (String)params[6]);
+ handleRequest((HttpServletRequest)params[0], // req
+ (String)params[1], // encoding
+ (List)params[2], // monitors
+ (Map)params[3], // parameterNames
+ (Map)params[4], // files
+ (String)params[5], // repositoryPath
+ ((Integer)params[6]).intValue()); // maxFileSize
}
private void handleRequest(HttpServletRequest req,
+ String encoding,
List monitors,
- int maxFileSize,
Map parameterNames,
Map files,
String repositoryPath,
- String encoding)
+ int maxFileSize)
throws IOException {
UploadFileItemFactory ufiFactory = new UploadFileItemFactory();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]