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

📄 group_editform.java

📁 本系统是基于Struts+Hibernate开发的一套后台管理系统
💻 JAVA
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.4/xslt/JavaClass.xslpackage com.infosys.struts.form;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionError;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;/**  * MyEclipse Struts * Creation date: 08-25-2005 *  * XDoclet definition: * @struts:form name="group_editForm" */public class Group_editForm extends ActionForm {	// --------------------------------------------------------- Instance Variables	/** code property */	private String id;		/** code property */	private String code;	/** rightpoint property */	private String[] rightpoint;	/** status property */	private Integer status;	/** remark property */	private String remark;	/** name property */	private String name;		/** action property */	private String action;	// --------------------------------------------------------- Methods	/** 	 * Method validate	 * @param mapping	 * @param request	 * @return ActionErrors	 */	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) {		if(action!=null && action.equalsIgnoreCase("save")){			ActionErrors errors=new ActionErrors();			if((name==null)||(name.length()<1)){				errors.add("name",new ActionError("tips.this.isNull"));			}			if((code==null)||(code.length()<1)){				errors.add("code",new ActionError("tips.this.isNull"));			}			if((rightpoint==null)||(rightpoint.length<1)){				errors.add("rightpoint",new ActionError("tips.this.isNull"));			}			if(status==null){				status=new Integer(1);			}			return errors;		}else{			return null;		}	}	/** 	 * Method reset	 * @param mapping	 * @param request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		this.code=null;		this.name=null;		this.remark=null;		this.rightpoint=null;		this.status=new Integer(1);		this.action="";	}	/** 	 * Returns the code.	 * @return String	 */	public String getCode() {		return code;	}	/** 	 * Set the code.	 * @param code The code to set	 */	public void setCode(String code) {		this.code = code;	}	/** 	 * Returns the rightpoint.	 * @return String	 */	public String[] getRightpoint() {		return rightpoint;	}	/** 	 * Set the rightpoint.	 * @param rightpoint The rightpoint to set	 */	public void setRightpoint(String[] rightpoint) {		this.rightpoint = rightpoint;	}	/** 	 * Returns the status.	 * @return Integer	 */	public Integer getStatus() {		return status;	}	/** 	 * Set the status.	 * @param status The status to set	 */	public void setStatus(Integer status) {		this.status = status;	}	/** 	 * Returns the remark.	 * @return String	 */	public String getRemark() {		return remark;	}	/** 	 * Set the remark.	 * @param remark The remark to set	 */	public void setRemark(String remark) {		this.remark = remark;	}	/** 	 * 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;	}	/**	 * @return 返回 action。	 */	public String getAction() {		return action;	}	/**	 * @param action 要设置的 action。	 */	public void setAction(String action) {		this.action = action;	}	/**	 * @return 返回 id。	 */	public String getId() {		return id;	}	/**	 * @param id 要设置的 id。	 */	public void setId(String id) {		this.id = id;	}}

⌨️ 快捷键说明

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