01: // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
02:
03: package madvoc;
04:
05: import jodd.servlet.upload.FileUpload;
06:
07: public class UploadFormBean {
08:
09: private String data1;
10:
11: public String getData1() {
12: return data1;
13: }
14:
15: public void setData1(String v) {
16: data1 = v;
17: }
18:
19: private String data2;
20:
21: public String getData2() {
22: return data2;
23: }
24:
25: public void setData2(String v) {
26: data2 = v;
27: }
28:
29: private String[] data3;
30:
31: public String[] getData3() {
32: return data3;
33: }
34:
35: public void setData3(String[] v) {
36: data3 = v;
37: }
38:
39: private FileUpload file1;
40:
41: public FileUpload getFile1() {
42: return file1;
43: }
44:
45: public void setFile1(FileUpload v) {
46: file1 = v;
47: }
48:
49: private FileUpload file2;
50:
51: public FileUpload getFile2() {
52: return file2;
53: }
54:
55: public void setFile2(FileUpload v) {
56: file2 = v;
57: }
58:
59: private FileUpload file3;
60:
61: public FileUpload getFile3() {
62: return file3;
63: }
64:
65: public void setFile3(FileUpload v) {
66: file3 = v;
67: }
68:
69: @Override
70: public String toString() {
71: String result = "";
72: result += "data1 " + data1;
73: result += "\ndata2 " + data2;
74: result += "\ndata3 " + data3;
75: result += "\nfile1 " + file1;
76: result += "\nfile2 " + file2;
77: result += "\nfile3 " + file3;
78:
79: return result;
80: }
81:
82: }
|