KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > presentation > website > formbeans > UploadFileForm


1
2 package org.roller.presentation.website.formbeans;
3
4 import org.apache.struts.upload.FormFile;
5
6
7 /**
8  * Allows the user to upload a set of files.
9  * @struts.form name="uploadFiles"
10  */

11 public class UploadFileForm
12     extends org.apache.struts.action.ActionForm
13 {
14     //protected FormFile[] mUploadedFiles = null;
15
protected transient FormFile mUploadedFile = null;
16
17     // The name of file to be deleted
18
protected String JavaDoc[] mDeleteFiles;
19
20     public UploadFileForm()
21     {
22         super();
23     }
24
25     //------------------------------------------------- Property uploadedFiles
26

27     /** files to be written to disk */
28     //public void setUploadedFiles(FormFile[] files) { mUploadedFiles = files; }
29

30     /** files to be written to disk */
31     //public FormFile[] getUploadedFiles() { return mUploadedFiles; }
32

33     /** files to be written to disk */
34     public void setUploadedFile(FormFile file) { mUploadedFile = file; }
35
36     /** files to be written to disk */
37     public FormFile getUploadedFile() { return mUploadedFile; }
38
39     /** files to be deleted from disk **/
40     public void setDeleteFiles(String JavaDoc[] fileNames)
41     {
42         mDeleteFiles = fileNames;
43     }
44
45     /** files to be deleted from disk **/
46     public String JavaDoc[] getDeleteFiles() { return mDeleteFiles; }
47 }
48
49
Popular Tags