- package classmate;
- import org.apache.struts.action.ActionForm;
- public class UserForm extends ActionForm{
- private String name = null; //用户名
- private String psw = null; //密码
- public UserForm(){}
- public void setName(String name) {
- this.name = name;
- }
- public String getName() {
- return name;
- }
- public void setPsw(String psw) {
- this.psw = psw;
- }
- public String getPsw() {
- return psw;
- }
- }