?? market_hqdt_addform.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 + -