📄 loginform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package barbershop.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;
import org.apache.struts.action.ActionMessage;
/**
* MyEclipse Struts
* Creation date: 12-17-2008
*
* XDoclet definition:
* @struts.form name="loginForm"
*/
public class LoginForm extends ActionForm {
/*
* Generated fields
*/
/** vipUser property */
private String vipUser;
/** vipPwd property */
private String vipPwd;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
ActionErrors errors = new ActionErrors();
if(this.vipUser == null || this.vipUser.equals(""))
{
errors.add("vipUser", new ActionMessage("error.vipuser.null"));
}
if(this.vipPwd == null || this.vipPwd.equals(""))
{
errors.add("vipPwd", new ActionMessage("error.vippwd.null"));
}
return errors;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
this.vipUser="";
this.vipPwd="";
}
/**
* Returns the vipUser.
* @return String
*/
public String getVipUser() {
return vipUser;
}
/**
* Set the vipUser.
* @param vipUser The vipUser to set
*/
public void setVipUser(String vipUser) {
this.vipUser = vipUser;
}
/**
* Returns the vipPwd.
* @return String
*/
public String getVipPwd() {
return vipPwd;
}
/**
* Set the vipPwd.
* @param vipPwd The vipPwd to set
*/
public void setVipPwd(String vipPwd) {
this.vipPwd = vipPwd;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -