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

📄 loginform.java

📁 eclipse java/jsp 航空管理系统
💻 JAVA
字号:
/*
 * Created on 2005-5-12
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package ddllogin.form;

import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
/**
 * @author duzhibo@neusoft
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class LoginForm extends ActionForm {
	//定义用户名和密码,还有是否保存密码
	private String userName;

	private String password;

	private boolean checkBox;
	
	/** event */
	private String event;

	//定义set和get的方法
	//userName的set方法
	public void setUserName(String userName) {
		this.userName = userName;
	}

	//userName的get方法
	public String getUserName() {
		return userName;
	}

	//password的set方法
	public void setPassword(String password) {
		this.password = password;
	}

	//password的get方法
	public String getPassword() {
		return password;
	}

	//checkBox的set方法
	public void setCheckBox(boolean checkBox) {
		this.checkBox = checkBox;
	}

	//checkBox的get方法
	public boolean getCheckBox() {
		return checkBox;
	}
	public void setEvent(String event) {
		this.event = event;
	}
	public String getEvent() {
		return event;
	}
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		checkBox = false;
		event = null;
		password = "";
		userName = "";
	}
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -