⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userform.java

📁 本代码是点歌系统的部分代码实现了部分功能
💻 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 + -