source: ether_megapoli/trunk/service/implementation/com/medias/megapoli/struts/forms/UploadForm.java @ 151

Last change on this file since 151 was 151, checked in by vmipsl, 13 years ago

Import medias files and cleanup

  • Property svn:executable set to *
File size: 1003 bytes
Line 
1package com.medias.megapoli.struts.forms;
2
3import org.apache.struts.validator.ValidatorForm;
4import org.apache.struts.action.ActionMapping;
5import org.apache.struts.upload.FormFile;
6
7import javax.servlet.http.HttpServletRequest;
8
9/**
10 * @author combaz
11 * Created on 3 févr. 2005
12 *
13 */
14public class UploadForm extends ValidatorForm {
15        /**
16     *
17     */
18    private static final long serialVersionUID = 1L;
19    private FormFile newFile = null;
20        private String path = null;
21       
22       
23        /**
24         * @return Returns the newFile.
25         */
26        public FormFile getNewFile() {
27                return newFile;
28        }
29        /**
30         * @param newFile The newFile to set.
31         */
32        public void setNewFile(FormFile file) {
33                this.newFile = file;
34        }
35       
36        /**
37         * @return Returns the path.
38         */
39        public String getPath() {
40                return path;
41        }
42        /**
43         * @param path The path to set.
44         */
45        public void setPath(String path) {
46                this.path = path;
47        }
48       
49        public void reset(ActionMapping mapping, HttpServletRequest request) {
50                this.newFile = null;
51                this.path = null;
52        }
53}
Note: See TracBrowser for help on using the repository browser.