📄 forumsearchform.java
字号:
package com.laoer.bbscs.web.form;
import org.apache.commons.lang.*;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
public class ForumSearchForm
extends ForumBaseForm {
private String con;
private String text;
public String getCon() {
return con;
}
public void setCon(String con) {
this.con = con;
}
public void setText(String text) {
this.text = text;
}
public String getText() {
return text;
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
if (this.getPage() == 0) {
this.setPage(1);
}
if (StringUtils.isBlank(this.con)) {
this.con = "title";
}
if (!this.con.equalsIgnoreCase("title") && !this.con.equalsIgnoreCase("userName")) {
this.con = "title";
}
return null;
}
public void reset(ActionMapping actionMapping, HttpServletRequest servletRequest) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -