backylhq_njdqform.java

来自「这个程序是花了好几十万请人开发的」· Java 代码 · 共 95 行

JAVA
95
字号
// Created by Xslt generator for Eclipse.// XSL :  not found (java.io.FileNotFoundException:  (Bad file descriptor))// Default XSL used : easystruts.jar$org.easystruts.xslgen.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;/**  * Backylhq_njdqForm.java created by EasyStruts - XsltGen. * http://easystruts.sf.net * created on 10-28-2004 *  * XDoclet definition: * @struts:form name="backylhq_njdqForm" */public class Backylhq_njdqForm extends ActionForm {	// --------------------------------------------------------- Instance Variables	// --------------------------------------------------------- Methods	private String title;	private String pubdate;	private String excel_table;		public void settitle(String title)	{		this.title=title;	}	public String gettitle()	{		return this.title;	}		public void setpubdate(String pubdate)	{		this.pubdate=pubdate;	}	public String getpubdate()	{		return this.pubdate;	}		public void setexcel_table(String excel_table)	{		this.excel_table=excel_table;	}	public String getexcel_table()	{		return this.excel_table;	}	/** 	 * Method validate	 * @param ActionMapping mapping	 * @param HttpServletRequest request	 * @return ActionErrors	 */	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) {			ActionErrors errors=new ActionErrors();						if(String.valueOf(title).length()==0)				{				errors.add("title",new ActionMessage("title.error"));			}			if(String.valueOf(pubdate).length()==0)				{				errors.add("pubdate",new ActionMessage("pubdate.error"));			}			if(String.valueOf(excel_table).length()==0)				{				errors.add("excel_table",new ActionMessage("excel_table.error"));			}					return errors;		//throw new UnsupportedOperationException("Generated method 'validate(...)' not implemented.");	}	/** 	 * Method reset	 * @param ActionMapping mapping	 * @param HttpServletRequest request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {	}}

⌨️ 快捷键说明

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