📄 userform.java
字号:
package music.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 final class UserForm extends ActionForm {
private String userName;
private String userPwd;
private int Type;
/**
* @return type
*/
public int getType() {
return Type;
}
/**
* @param type 要设置的 type
*/
public void setType(int type) {
Type = type;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserPwd() {
return userPwd;
}
public void setUserPwd(String userPwd) {
this.userPwd = userPwd;
}
public void reset(ActionMapping mapping, HttpServletRequest request){
userName = null;
userPwd = null;
Type = 0;
}
public String toString(){
String str = "name is : " + this.userName + " pwd is : " + this.userPwd;
System.out.println(str);
return str;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -