| 1 16 package com.blandware.atleap.webapp.form.contact; 17 18 import com.blandware.atleap.webapp.form.BaseForm; 19 import org.apache.struts.action.ActionErrors; 20 import org.apache.struts.action.ActionMapping; 21 22 import javax.servlet.http.HttpServletRequest ; 23 24 32 public class ContactForm extends BaseForm { 33 34 protected String userName; 35 protected String email; 36 protected String message; 37 protected String preview; 38 39 42 public ContactForm() { 43 } 44 45 50 public String getUserName() { 51 return userName; 52 } 53 54 61 public void setUserName(String userName) { 62 this.userName = userName; 63 } 64 65 70 public String getEmail() { 71 return email; 72 } 73 74 82 public void setEmail(String email) { 83 this.email = email; 84 } 85 86 91 public String getMessage() { 92 return message; 93 } 94 95 102 public void setMessage(String message) { 103 this.message = message; 104 } 105 106 111 public String getPreview() { 112 return preview; 113 } 114 115 120 public void setPreview(String preview) { 121 this.preview = preview; 122 } 123 124 130 public void reset(ActionMapping mapping, HttpServletRequest request) { 131 userName = null; 132 email = null; 133 message = null; 134 preview = null; 135 } 136 137 144 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 145 ActionErrors errors = new ActionErrors(); 146 return errors; 147 } 148 } | Popular Tags |