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

📄 indexform.java

📁 这是一个用Struts+Hibernate+Tomcat5.5.9实现的一个“课程管理系统”
💻 JAVA
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.0.0/xslt/JavaClass.xslpackage 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;import org.apache.struts.action.ActionMessage;/** * MyEclipse Struts Creation date: 11-12-2005 *  * XDoclet definition: *  * @struts.form name="IndexForm" */public class IndexForm extends ActionForm {	// --------------------------------------------------------- Instance	// Variables	/** password property */	private String password;	/** username property */	private String username;	private String kind;	// --------------------------------------------------------- Methods	public String getKind() {		return kind;	}	public void setKind(String kind) {		this.kind = kind;	}	/**	 * Method validate	 * 	 * @param mapping	 * @param request	 * @return ActionErrors	 */	public ActionErrors validate(ActionMapping mapping,			HttpServletRequest request) {		ActionErrors errors = new ActionErrors();		if ((username == null) || (username.length() < 1))			errors					.add("username", new ActionMessage(							"error.username.required"));		if ((password == null) || (password.length() < 1))			errors					.add("password", new ActionMessage(							"error.password.required"));		return errors;	}	/**	 * Method reset	 * 	 * @param mapping	 * @param request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		this.username = null;		this.password = null;	}	/**	 * Returns the password.	 * 	 * @return String	 */	public String getPassword() {		return password;	}	/**	 * Set the password.	 * 	 * @param password	 *            The password to set	 */	public void setPassword(String password) {		this.password = password;	}	/**	 * 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;	}}

⌨️ 快捷键说明

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