office_membersuggestform.java

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

JAVA
91
字号
/* *  * @author 郑文金 * * 这个form用于在"网上办公室"中发布个人建议 * */package 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;public class Office_membersuggestForm extends ActionForm {	// --------------------------------------------------------- Instance Variables	/** MESSAGE property */	private String MESSAGE;	/** TITLE property */	private String TITLE;	// --------------------------------------------------------- Methods	/** 	 * Method validate	 * @param ActionMapping mapping	 * @param HttpServletRequest request	 * @return ActionErrors	 */	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) 	{		ActionErrors errors =new ActionErrors();				if((TITLE.equals(""))||(MESSAGE.equals("")))							errors.add("blankmessage.error",new ActionError("office_blankmessage.error"));		if(MESSAGE.length()>1000)			errors.add("message_larger.error",new ActionError("office_larger.error"));		return errors;	}	/** 	 * Method reset	 * @param ActionMapping mapping	 * @param HttpServletRequest request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) {		MESSAGE = "";		TITLE = "";	}	/** 	 * Returns the MESSAGE.	 * @return String	 */	public String getMESSAGE() {		return MESSAGE;	}	/** 	 * Set the MESSAGE.	 * @param MESSAGE The MESSAGE to set	 */	public void setMESSAGE(String MESSAGE) {		this.MESSAGE = MESSAGE;	}	/** 	 * Returns the TITLE.	 * @return String	 */	public String getTITLE() {		return TITLE;	}	/** 	 * Set the TITLE.	 * @param TITLE The TITLE to set	 */	public void setTITLE(String TITLE) {		this.TITLE = TITLE;	}}

⌨️ 快捷键说明

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