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

📄 updatecourseform.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-14-2005 *  * XDoclet definition: * @struts.form name="updateCourseForm" */public class UpdateCourseForm extends ActionForm {	// --------------------------------------------------------- Instance Variables	/** develop property */	private String develop;	/** mark property */	private Integer mark;	/** prepare property */	private String prepare;	/** courseID property */	private String courseID;	/** name property */	private String name;	/** id property */	private Long id;	// --------------------------------------------------------- Methods	/** 	 * Method validate	 * @param mapping	 * @param request	 * @return ActionErrors	 */	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) {        ActionErrors errors = new ActionErrors();                if ((develop == null) || (develop.length() < 1))            errors.add("develop", new ActionMessage("error.develop.required"));                        if ((prepare == null) || (prepare.length() < 1))            errors.add("prepare", new ActionMessage("error.prepare.required"));                if ((courseID == null) || (courseID.length() < 1))            errors.add("courseID", new ActionMessage("error.courseID.required"));                if ((name == null) || (name.length() < 1))            errors.add("name", new ActionMessage("error.name.required"));            		return errors;	}	/** 	 * Method reset	 * @param mapping	 * @param request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		// TODO Auto-generated method stub	}	/** 	 * Returns the develop.	 * @return String	 */	public String getDevelop() {		return develop;	}	/** 	 * Set the develop.	 * @param develop The develop to set	 */	public void setDevelop(String develop) {		this.develop = develop;	}	/** 	 * Returns the mark.	 * @return Integer	 */	public Integer getMark() {		return mark;	}	/** 	 * Set the mark.	 * @param mark The mark to set	 */	public void setMark(Integer mark) {		this.mark = mark;	}	/** 	 * Returns the prepare.	 * @return String	 */	public String getPrepare() {		return prepare;	}	/** 	 * Set the prepare.	 * @param prepare The prepare to set	 */	public void setPrepare(String prepare) {		this.prepare = prepare;	}	/** 	 * Returns the courseID.	 * @return String	 */	public String getCourseID() {		return courseID;	}	/** 	 * Set the courseID.	 * @param courseID The courseID to set	 */	public void setCourseID(String courseID) {		this.courseID = courseID;	}	/** 	 * 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;	}	/** 	 * Returns the id.	 * @return Long	 */	public Long getId() {		return id;	}	/** 	 * Set the id.	 * @param id The id to set	 */	public void setId(Long id) {		this.id = id;	}}

⌨️ 快捷键说明

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