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

📄 loginform.java

📁 网上购物系统
💻 JAVA
字号:
// ----------------------------------------------------------
// $Id: $
// Copyright (c) SHSAFE 2005-2006. All Rights Reserved.
// ----------------------------------------------------------
package example.login;


import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import com.shsafe.common.struts.action.BaseActionForm;

/**
 * Login Action Form
 * 
 * @author Michael J Chane
 * @version $Revision: $ $Date: $
 */
public class LoginForm extends BaseActionForm {

  /**
   * The serialVersionUID
   */
  private static final long serialVersionUID = 5903306603739066305L;

  /**
   * User Id
   */
  private String userId;

  /**
   * Password
   */
  private String password;

  /**
   * Retrieves the password.
   * 
   * @return Returns the password.
   */
  public String getPassword() {
    return password;
  }

  /**
   * Sets the password to the given value.
   * 
   * @param password
   *          The password to set.
   */
  public void setPassword(String password) {
    this.password = password;
  }

  /**
   * Retrieves the userId.
   * 
   * @return Returns the userId.
   */
  public String getUserId() {
    return userId;
  }

  /**
   * Sets the userId to the given value.
   * 
   * @param userId
   *          The userId to set.
   */
  public void setUserId(String userId) {
    this.userId = userId;
  }

  /**
   * Reset all properties to their default values.
   * 
   * @param mapping
   *          The mapping used to select this instance
   * @param request
   *          The servlet request we are processing
   */
  @Override
  public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
    password = null;
  }

}

⌨️ 快捷键说明

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