📄 loginactionform.java
字号:
/*
* Created on 2005-7-24
*
*/
package banksystem.VO;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
/**
* @author 曲本盛
*
* TODO Struts 项目实践
*/
public class LoginActionForm extends ActionForm {
private String userType = null;
private String accountID = null;
private String password = null;
public LoginActionForm(){}
/**
* @param userType 用户类型
* @param accountID 用户帐号
* @param password 用户密码
*/
public LoginActionForm(String userType, String accountID, String password) {
super();
this.userType = userType;
this.accountID = accountID;
this.password = password;
}
/**
* @return Returns the accountID.
*/
public String getAccountID() {
return accountID;
}
/**
* @param accountID The accountID to set.
*/
public void setAccountID(String accountID) {
this.accountID = accountID;
}
/**
* @return Returns the password.
*/
public String getPassword() {
return password;
}
/**
* @param password The password to set.
*/
public void setPassword(String password) {
this.password = password;
}
/**
* @return Returns the userType.
*/
public String getUserType() {
return userType;
}
/**
* @param userType The userType to set.
*/
public void setUserType(String userType) {
this.userType = userType;
}
/**
* @param actionMapping 该项目的映射对象.
* @param request HTTP请求对象.
*/
public void reset(ActionMapping actionMapping, HttpServletRequest request) {
super.reset(actionMapping, request);
this.userType="normal";
this.accountID = null;
this.password = null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -