📄 searchform.java
字号:
package com.yhcms.index.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
/**
* <p>Title:站内搜索Form</p>
* <li>站内搜索</li>
* <br><b>CopyRight: yyhweb[由由华网]</b>
* @author stephen
* @version YH-2.0
*/
public class SearchForm extends ActionForm{
private static final long serialVersionUID = 1L;
private String scontent = "";
private int schid = -1;
/**
* @return 所要搜索的栏目Id
*/
public int getSchid() {
return schid;
}
/**
* @param cId 所要搜索的栏目Id
*/
public void setSchid(int schid) {
this.schid = schid;
}
/**
* @return 搜索内容
*/
public String getScontent() {
return scontent;
}
/**
* @param sContent 搜索内容
*/
public void setScontent(String scontent) {
this.scontent = scontent.trim();
}
public ActionErrors validate(ActionMapping actionmapping,HttpServletRequest request){
return null;
}
public void reset(ActionMapping actionmapping,HttpServletRequest request){
schid = -1;
scontent = "";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -