?? searchform.java
字號:
package com.laoer.bbscs.web.form;
import org.apache.struts.action.*;
import javax.servlet.http.*;
/**
* <p>Title: TianYi BBS</p>
* <p>Description: TianYi BBS System</p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: LAOER.COM/TIANYISOFT.NET</p>
* @author laoer
* @version 6.0
*/
public class SearchForm
extends ActionForm {
private int maxresults;
private String query;
private int startat;
public int getMaxresults() {
return maxresults;
}
public void setMaxresults(int maxresults) {
this.maxresults = maxresults;
}
public String getQuery() {
return query;
}
public void setQuery(String query) {
this.query = query;
}
public int getStartat() {
return startat;
}
public void setStartat(int startat) {
this.startat = startat;
}
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
ActionErrors errors = new ActionErrors();
if (query == null || query.length() == 0) {
errors.add("parametererror", new ActionError("error.parametererror"));
}
if (maxresults == 0) {
maxresults = 50;
}
return (errors);
}
public void reset(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -