⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sidactionform.java

📁 BBS-CS(天乙社区) v5.2.2源码版
💻 JAVA
字号:
package com.laoer.bbscs.bbs.actionform;

import org.apache.struts.action.*;
import javax.servlet.http.*;

public class SidActionForm
    extends ActionForm {

  private String sid;
  private String action;

  public String getSid() {
    return sid;
  }

  public void setSid(String sid) {
    this.sid = sid;
  }

  public String getAction() {
    return action;
  }

  public void setAction(String action) {
    this.action = action;
  }

  public ActionErrors validate(ActionMapping actionMapping,
                               HttpServletRequest httpServletRequest) {
    ActionErrors errors = new ActionErrors();
    if (sid == null || sid.length() == 0) {
      errors.add("parametererror", new ActionError("error.parametererror"));
    }
    return (errors);
  }

  public void reset(ActionMapping actionMapping,
                    HttpServletRequest httpServletRequest) {
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -