loginform.java

来自「网上购物系统」· Java 代码 · 共 90 行

JAVA
90
字号
// ----------------------------------------------------------
// $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 + =
减小字号Ctrl + -
显示快捷键?