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

📄 info_class_addform.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-27-2005 *  * XDoclet definition: * @struts:form name="info_class_addForm" */public class Info_class_addForm extends ActionForm {	// --------------------------------------------------------- Instance Variables	/** classname property */	private String classname;		/** classname property */	private Integer vieworder;		/** 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((classname==null)||(classname.length()<1)){				errors.add("classname",new ActionError("tips.this.isNull"));				errors.add("vieworder",new ActionError("tips.this.isNull"));			}			return errors;		}else{			return null;		}	}	/** 	 * Method reset	 * @param mapping	 * @param request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		this.classname=null;		this.vieworder=new Integer(0);	}	/** 	 * Returns the classname.	 * @return String	 */	public String getClassname() {		return classname;	}	/** 	 * Set the classname.	 * @param classname The classname to set	 */	public void setClassname(String classname) {		this.classname = classname;	}	/**	 * @return 返回 action。	 */	public String getAction() {		return action;	}	/**	 * @param action 要设置的 action。	 */	public void setAction(String action) {		this.action = action;	}	/**	 * @return 返回 vieworder。	 */	public Integer getVieworder() {		return vieworder;	}	/**	 * @param vieworder 要设置的 vieworder。	 */	public void setVieworder(Integer vieworder) {		this.vieworder = vieworder;	}}

⌨️ 快捷键说明

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