1 16 17 package examples.app1; 18 19 20 import javax.servlet.http.HttpServletRequest ; 21 import org.apache.struts.action.ActionError; 22 import org.apache.struts.action.ActionErrors; 23 import org.apache.struts.action.ActionForm; 24 import org.apache.struts.action.ActionMapping; 25 26 import java.util.ArrayList ; 27 28 29 35 36 public final class AddressForm extends ActionForm 37 { 38 39 41 private String action = ""; 42 43 private String firstname = ""; 44 45 private String lastname = ""; 46 47 private String street = ""; 48 49 private String zip = ""; 50 51 private String city = ""; 52 53 private String country = ""; 54 55 private String locale = ""; 56 57 private String [] languages; 58 59 60 62 public String getAction() 63 { 64 return action; 65 } 66 67 public void setAction(String s) 68 { 69 action = s; 70 } 71 72 public String getFirstname() 73 { 74 return firstname; 75 } 76 77 public void setFirstname(String s) 78 { 79 firstname = s; 80 } 81 82 public String getLastname() 83 { 84 return lastname; 85 } 86 87 public void setLastname(String s) 88 { 89 lastname = s; 90 } 91 92 public String getStreet() 93 { 94 return street; 95 } 96 97 public void setStreet(String s) 98 { 99 street = s; 100 } 101 102 public String getZip() 103 { 104 return zip; 105 } 106 107 public void setZip(String s) 108 { 109 zip = s; 110 } 111 112 public String getCity() 113 { 114 return city; 115 } 116 117 public void setCity(String s) 118 { 119 city = s; 120 } 121 122 public String getCountry() 123 { 124 return country; 125 } 126 127 public void setCountry(String s) 128 { 129 country = s; 130 } 131 132 public String getLocale() 133 { 134 return locale; 135 } 136 137 public void setLocale(String s) 138 { 139 locale = s; 140 } 141 142 public String [] getLanguages() 143 { 144 return languages; 145 } 146 147 public void setLanguages(String [] s) 148 { 149 languages = s; 150 } 151 152 153 159 public void reset(ActionMapping mapping, HttpServletRequest request) 160 { 161 162 action = ""; 163 locale = ""; 164 firstname = ""; 165 lastname = ""; 166 street = ""; 167 zip = ""; 168 city = ""; 169 country = ""; 170 171 } 172 173 } 174 175 176 | Popular Tags |