logonform.java

来自「Struts + Hibernate教学录像(第3集)」· Java 代码 · 共 88 行

JAVA
88
字号
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.4/xslt/JavaClass.xslpackage com.sonic.struts.form;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionMapping;import org.apache.struts.validator.ValidatorForm;/**  * MyEclipse Struts * Creation date: 04-26-2005 *  * XDoclet definition: * @struts:form name="logonForm" */public class LogonForm extends ValidatorForm {	// --------------------------------------------------------- Instance Variables	/** userName property */	private String userName;	/** userPwd property */	private String userPwd;	// --------------------------------------------------------- Methods	/** 	 * Method validate	 * @param mapping	 * @param request	 * @return ActionErrors	 */	public ActionErrors validator(		ActionMapping mapping,		HttpServletRequest request) {		throw new UnsupportedOperationException(			"Generated method 'validate(...)' not implemented.");	}	/** 	 * Method reset	 * @param mapping	 * @param request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		this.userName=null;		this.userPwd=null;	}	/** 	 * Returns the userName.	 * @return String	 */	public String getUserName() {		return userName;	}	/** 	 * Set the userName.	 * @param userName The userName to set	 */	public void setUserName(String userName) {		this.userName = userName;	}	/** 	 * Returns the userPwd.	 * @return String	 */	public String getUserPwd() {		return userPwd;	}	/** 	 * Set the userPwd.	 * @param userPwd The userPwd to set	 */	public void setUserPwd(String userPwd) {		this.userPwd = userPwd;	}}

⌨️ 快捷键说明

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