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

📄 adminposthiddensetform.java

📁 一个jsp写的bbs
💻 JAVA
字号:
package com.laoer.bbscs.web.form;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.*;

public class AdminPostHiddenSetForm
    extends ActionForm {

  private String action;
  private int postHiddenTypeArtNum;
  private int postHiddenTypeMoney;
  private int postHiddenTypeRe;
  private String postPriceList;
  private float postPriceTax;

  public String getAction() {
    return action;
  }

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

  public void setPostPriceTax(float postPriceTax) {
    this.postPriceTax = postPriceTax;
  }

  public void setPostPriceList(String postPriceList) {
    this.postPriceList = postPriceList;
  }

  public void setPostHiddenTypeRe(int postHiddenTypeRe) {
    this.postHiddenTypeRe = postHiddenTypeRe;
  }

  public void setPostHiddenTypeMoney(int postHiddenTypeMoney) {
    this.postHiddenTypeMoney = postHiddenTypeMoney;
  }

  public void setPostHiddenTypeArtNum(int postHiddenTypeArtNum) {
    this.postHiddenTypeArtNum = postHiddenTypeArtNum;
  }

  public int getPostHiddenTypeArtNum() {
    return postHiddenTypeArtNum;
  }

  public int getPostHiddenTypeMoney() {
    return postHiddenTypeMoney;
  }

  public int getPostHiddenTypeRe() {
    return postHiddenTypeRe;
  }

  public String getPostPriceList() {
    return postPriceList;
  }

  public float getPostPriceTax() {
    return postPriceTax;
  }

  public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
    if (StringUtils.isBlank(this.action)) {
      this.action = "index";
    }
    if (this.action.equalsIgnoreCase("save")) {
      if (StringUtils.isBlank(this.postPriceList)) {
        this.postPriceList = "2";
      }
    }
    return null;
  }

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

⌨️ 快捷键说明

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