searchform.java

来自「struts hibernate2.0整合」· Java 代码 · 共 107 行

JAVA
107
字号
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.4/xslt/JavaClass.xslpackage com.zero.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: 01-31-2007 *  * XDoclet definition: * @struts:form name="searchForm" */public class SearchForm extends ValidatorForm {	// --------------------------------------------------------- Instance Variables	/** phone property */	private String phone;	/** address property */	private String address;	/** name property */	private String name;	// --------------------------------------------------------- Methods	/** 	 * Method validate	 * @param mapping	 * @param request	 * @return ActionErrors	 */	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) {		return null;	}	/** 	 * Method reset	 * @param mapping	 * @param request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		this.name=null;		this.phone=null;		this.address=null;	}	/** 	 * Returns the phone.	 * @return String	 */	public String getPhone() {		return phone;	}	/** 	 * Set the phone.	 * @param phone The phone to set	 */	public void setPhone(String phone) {		this.phone = phone;	}	/** 	 * Returns the address.	 * @return String	 */	public String getAddress() {		return address;	}	/** 	 * Set the address.	 * @param address The address to set	 */	public void setAddress(String address) {		this.address = address;	}	/** 	 * Returns the name.	 * @return String	 */	public String getName() {		return name;	}	/** 	 * Set the name.	 * @param name The name to set	 */	public void setName(String name) {		this.name = name;	}}

⌨️ 快捷键说明

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