loginactionform.java~1~

来自「100多M的J2EE培训内容」· JAVA~1~ 代码 · 共 33 行

JAVA~1~
33
字号
package com.miaoq.userjmssesenbdb;import org.apache.struts.action.*;import javax.servlet.http.*;public class LoginActionForm extends ActionForm {  private String shancbz_new;  private String xiwbz_new;  public String getShancbz_new() {    return shancbz_new;  }  public void setShancbz_new(String shancbz_new) {    this.shancbz_new = shancbz_new;  }  public String getXiwbz_new() {    return xiwbz_new;  }  public void setXiwbz_new(String xiwbz_new) {    this.xiwbz_new = xiwbz_new;  }  public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {    ActionErrors errors=new ActionErrors();    if((shancbz_new==null)||(shancbz_new.length()<2)){      errors.add("shancbz",new ActionError("error.shancbz.required"));    }    if((xiwbz_new==null)||(xiwbz_new.length()<2)){      errors.add("xiwbz",new ActionError("error.xiwbz.required"));    }    return errors;  }  public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {  }}

⌨️ 快捷键说明

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