/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.yourcompany.struts.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
public class LoginForm extends ActionForm {
private String passwd;
private String account;
//前端错误认证
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
return null;
}
//重置,每次提交表单都会被调用
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
public String getPasswd() {
return passwd;
}
/**
* Set the passwd.
* @param passwd The passwd to set
*/
public void setPasswd(String passwd) {
this.passwd = passwd;
}
/**
* Returns the account.
* @return String
*/
public String getAccount() {
return account;
}
/**
* Set the account.
* @param account The account to set
*/
public void setAccount(String account) {
this.account = account;
}
}