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

📄 guestbookform.java

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JAVA
字号:
/*
 * @author                        : Neelesh
 * @Version                       : 1.0
 *
 * Development Environment        : Oracle9i JDeveloper
 * Name of the File               : GuestbookForm.java
 * Creation/Modification History  :
 *
 * Neelesh   14-Match-2003      Created
 *
 */
package oracle.otnsamples.vsm.actions.forms;

import org.apache.struts.action.ActionForm;


/**
 * The class is a Struts action form encapsulating details of a guestbook entry
 * and is used in guestbookForm.jsp and AddGuestbookAction.java.
 *
 * @author Neelesh
 * @version 1.0
 */
public class GuestbookForm extends ActionForm {

  private String comments;
  private String email;
  private String entryDate;
  private String rating;
  private String userName;

  /**
   * Do nothing, no arguments constructor
   */
  public GuestbookForm() {
  }
  /**
   * Constructor which accepts parameters and initializes the object with
   * these values
   *
   * @param <b>email</b> email
   * @param <b>userName</b> user name
   * @param <b>comments</b> comments
   * @param <b>rating</b> rating
   */
  public GuestbookForm(
                       String email, String userName, String comments,
                       String rating) {
    this.email      = email;
    this.userName   = userName;
    this.comments   = comments;
    this.rating     = rating;
  }

  /**
   * Set of getter methods for email id, user rating, 
   * user comments and entry date.
   */
  public String getEmail() {

    return email;
  }

  public String getUserName() {

    return userName;
  }

  public String getComments() {

    return comments;
  }

  public String getRating() {

    return rating;
  }

  public String getEntryDate() {

    return entryDate;
  }
  /**
   * Set of setter methods for email id, user rating, 
   * user comments and entry date.
   */
  public void setEmail(String value) {
    email = value;
  }

  public void setUserName(String value) {
    userName = value;
  }

  public void setRating(String value) {
    rating = value;
  }

  public void setComments(String value) {
    comments = value;
  }

  public void setEntryDate(String value) {
    entryDate = value;
  }
}

⌨️ 快捷键说明

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