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

📄 office_membersuggestform.java

📁 这个程序是花了好几十万请人开发的
💻 JAVA
字号:
/* *  * @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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -