public class TagForm extends ActionForm { private int id; private String userName; private String password; private int sex; private String[] hobbies; private String from; private String introduction; private Collection provinces; private boolean checkbox1; private boolean checkbox2;
public TagForm() { sex = 1; provinces = new ArrayList(); provinces.add(new OptionBean("beijing", "100000")); provinces.add(new OptionBean("hebei", "110000")); provinces.add(new OptionBean("tianjin", "120000")); }
public String getFrom() { return from; }
public void setFrom(String from) { this.from = from; }
public String[] getHobbies() { return hobbies; }
public void setHobbies(String[] hobbies) { this.hobbies = hobbies; }
public int getId() { return id; }
public void setId(int id) { this.id = id; }
public String getIntroduction() { return introduction; }
public void setIntroduction(String introduction) { this.introduction = introduction; }
public String getPassword() { return password; }
public void setPassword(String password) { this.password = password; }
public int getSex() { return sex; }
public void setSex(int sex) { this.sex = sex; }
public String getUserName() { return userName; }
public void setUserName(String userName) { this.userName = userName; }
public Collection getProvinces() { return provinces; }