friendform.java

来自「一个jsp写的bbs」· Java 代码 · 共 61 行

JAVA
61
字号
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 + =
减小字号Ctrl + -
显示快捷键?