.#useractionform.java.1.2

来自「为交课程设计」· 2 代码 · 共 118 行

2
118
字号
package com.infodeliver.hr.sys.user.form;

import org.apache.struts.action.*;

/**
 * <p>Todo </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2005</p>
 * <p>Company: infodeliver</p>
 * @author caojinli
 * @version 1.0
 */

public class UserActionForm extends ActionForm {
  private String cfpassword;
  private int tel;
  private String user_id;
  private int role;
  private String content;
  private String role_name;
  private String password;
  private String useremail;
  private String username;
  private String userrealname;
  public String getCfpassword() {
    return cfpassword;
  }
  public void setCfpassword(String cfpassword) {
    this.cfpassword = cfpassword;
  }
  public String getContent() {
    return content;
  }
  public void setContent(String content) {
    this.content = content;
  }
  public String getPassword() {
    return password;
  }
  public void setPassword(String password) {
    this.password = password;
  }
  public String getUseremail() {
    return useremail;
  }
  public void setUseremail(String useremail) {
    this.useremail = useremail;
  }
  public String getUsername() {
    return username;
  }
  public void setUsername(String username) {
    this.username = username;
  }
  public String getUserrealname() {
    return userrealname;
  }



  public String getUser_id() {
    return user_id;
  }



  public String getRole_name() {
    return role_name;
  }

  public int getTel() {
    return tel;
  }

  public int getRole() {
    return role;
  }

  public void setUserrealname(String userrealname) {
    this.userrealname = userrealname;
  }



  public void setUser_id(String user_id) {
    this.user_id = user_id;
  }



  public void setRole_name(String role_name) {
    this.role_name = role_name;
  }

  public void setTel(int tel) {
    this.tel = tel;
  }

  public void setRole(int role) {
    this.role = role;
  }

//  public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest){
//  ActionErrors errors = new ActionErrors();
//if ((username == null) || (username.length() < 1))
//    errors.add("name", new ActionError("error.username.required"));
//if ((password == null) || (password.length() < 1))
//    errors.add("password", new ActionError("error.password.required"));
//
//  if(!password.equals(cfpassword))
//    errors.add("cfpassword",new ActionError("error.confirmpassword.notequals.password"));
//    if(useremail.trim().indexOf('@')==-1||useremail.trim().indexOf('.')==-1)
//      errors.add("useremail",new ActionError("error.useremail.wrong"));
//
//    return errors;
//  }
}

⌨️ 快捷键说明

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