1 package org.contineo.forms; 2 3 import javax.servlet.http.HttpServletRequest ; 4 import org.apache.struts.action.ActionForm; 5 import org.apache.struts.action.ActionMapping; 6 7 11 public class BackupForm extends ActionForm{ 12 13 private static final long serialVersionUID = 1L; 14 private boolean enable; 15 private String path; 16 17 20 public BackupForm() { 21 enable = true; 22 path = ""; 23 } 24 25 29 public boolean isEnable() { 30 return enable; 31 } 32 33 37 public void setEnable(boolean enable) { 38 this.enable = enable; 39 } 40 41 45 public String getPath() { 46 return path; 47 } 48 49 53 public void setPath(String path) { 54 this.path = path; 55 } 56 57 public void reset(ActionMapping mapping, HttpServletRequest request) { 58 enable = false; 59 path = ""; 60 } 61 } 62 | Popular Tags |