📄 friendform.java
字号:
package com.laoer.bbscs.web.form;
import javax.servlet.http.*;
import org.apache.commons.lang.*;
import org.apache.struts.action.*;
public class FriendForm
extends BaseForm {
private String friendName;
private String id;
private int isBlack;
private String friendComment;
public String getFriendName() {
return friendName;
}
public void setFriendName(String friendName) {
this.friendName = friendName;
}
public void setIsBlack(int isBlack) {
this.isBlack = isBlack;
}
public void setId(String id) {
this.id = id;
}
public void setFriendComment(String friendComment) {
this.friendComment = friendComment;
}
public String getId() {
return id;
}
public int getIsBlack() {
return isBlack;
}
public String getFriendComment() {
return friendComment;
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
if (StringUtils.isBlank(this.getAction())) {
this.setAction("f");
}
if (this.isBlack > 1) {
this.isBlack = 0;
}
return null;
}
public void reset(ActionMapping actionMapping, HttpServletRequest servletRequest) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -