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

📄 loginform.java

📁 java做的 公交车查询系统....毕业设计
💻 JAVA
字号:
package gongjiaochexitong.renyuan;

import org.apache.struts.action.ActionForm;

import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMessage;

public class loginForm  extends ActionForm{
	private static final long serialVersionUID = 1L;
	private String userName=null;
	private String userPassword=null;
	private String userPower=null;
	
	public loginForm(){
		
	}
	
	public void setUserName(String userName){
		this.userName=userName;
	}
	
	public String getUserName(){
		return userName;
	}
	
	public void setUserPassword(String userPassword){
		this.userPassword=userPassword;
	}
	
	public String getUserPassword(){
		return userPassword;
	}
	
	public void setUserPower(String userPower){
		this.userPower=userPower;
	}
	
	public String getUserPower(){
		return userPower;
	}
	
	public void reset(ActionMapping mapping,
			HttpServletRequest request) {
		this.userName=null;
		this.userPassword=null;
		this.userPower=null;
	}
	
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
			ActionErrors errors = new ActionErrors();
			
			if (userName==null || userPassword==null || userPower==null){
				errors.add(ActionErrors.GLOBAL_MESSAGE,
					new ActionMessage(""));                       
			}		
			
			return errors;
	}

}

⌨️ 快捷键说明

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