1 7 package org.contineo.forms; 8 9 import javax.servlet.http.HttpServletRequest ; 10 import org.apache.struts.action.ActionMapping; 11 import org.apache.struts.validator.ValidatorForm; 12 13 19 public class EMailForm extends ValidatorForm { 20 21 private static final long serialVersionUID = 1L; 22 23 26 private String author; 27 30 private String recipient; 31 34 private String subject; 35 38 private String text; 39 42 private String att0; 43 46 private String att1; 47 50 private String att2; 51 54 private String att3; 55 58 private String att4; 59 60 63 public EMailForm() { 64 author = ""; 65 recipient = ""; 66 subject = ""; 67 text = ""; 68 att0 = ""; 69 att1 = ""; 70 att2 = ""; 71 att3 = ""; 72 att4 = ""; 73 } 74 75 80 public String getAtt0() { 81 return att0; 82 } 83 84 89 public String getAtt1() { 90 return att1; 91 } 92 93 98 public String getAtt2() { 99 return att2; 100 } 101 102 107 public String getAtt3() { 108 return att3; 109 } 110 111 116 public String getAtt4() { 117 return att4; 118 } 119 120 125 public String getAuthor() { 126 return author; 127 } 128 129 134 public String getRecipient() { 135 return recipient; 136 } 137 138 143 public String getSubject() { 144 return subject; 145 } 146 147 152 public String getText() { 153 return text; 154 } 155 156 161 public void setAtt0(String string) { 162 att0 = string; 163 } 164 165 170 public void setAtt1(String string) { 171 att1 = string; 172 } 173 174 179 public void setAtt2(String string) { 180 att2 = string; 181 } 182 183 188 public void setAtt3(String string) { 189 att3 = string; 190 } 191 192 197 public void setAtt4(String string) { 198 att4 = string; 199 } 200 201 206 public void setAuthor(String string) { 207 author = string; 208 } 209 210 215 public void setRecipient(String string) { 216 recipient = string; 217 } 218 219 224 public void setSubject(String string) { 225 subject = string; 226 } 227 228 233 public void setText(String string) { 234 text = string; 235 } 236 237 public void reset(ActionMapping mapping, HttpServletRequest request) { 238 author = ""; 239 recipient = ""; 240 subject = ""; 241 text = ""; 242 att0 = ""; 243 att1 = ""; 244 att2 = ""; 245 att3 = ""; 246 att4 = ""; 247 } 248 } 249 | Popular Tags |