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

📄 market_hqdt_addform.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 Market_hqdt_addForm extends ActionForm {	private String content;	/** sc property */	private String type;	/** title property */	private String title;	public ActionErrors validate(		ActionMapping mapping,		HttpServletRequest request) 	{		ActionErrors errors=new ActionErrors();		if(title.equals("")||content.equals(""))			errors.add("nomessage.error",new ActionError("market_nomessage.error"));				if(type.equals(""))			errors.add("noselect.error",new ActionError("market_noselect.error"));		if(content.length()>4000)			errors.add("content.error",new ActionError("market_content.error"));		return errors;	}	/** 	 * Method reset	 * @param ActionMapping mapping	 * @param HttpServletRequest request	 */	public void reset(ActionMapping mapping, HttpServletRequest request) 	{		content = "";		type = "";		title = "";	}	/** 	 * Returns the hq.	 * @return String	 */	public String getType() {		return type;	}	/** 	 * Set the hq.	 * @param hq The hq to set	 */	public void setType(String type) {		this.type = type;	}	/** 	 * Returns the content.	 * @return String	 */	public String getContent() {		return content;	}	/** 	 * Set the content.	 * @param content The content to set	 */	public void setContent(String content) {		this.content = content;	}	/** 	 * 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 + -