talkform.java

来自「《struts应用开发完全手册》中的源代码及安装指导」· Java 代码 · 共 61 行

JAVA
61
字号
package com.actionForm;

import org.apache.struts.action.ActionForm;


public class TalkForm extends ActionForm {
    private String content;    //留言内容
    private Integer id;        //自动编号
    private String leaveTime;   //留言时间
    private String topic;        //留言主题
    private String who;        //留言人名称
    public TalkForm(){        //通过构造方法设置属性的初值
    this.content="";
    this.id=Integer.valueOf("-1");
    this.leaveTime="";
    this.topic="";
    this.who="";
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setWho(String who) {
        this.who = who;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public void setLeaveTime(String leaveTime) {
        this.leaveTime = leaveTime;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public String getLeaveTime() {
        return leaveTime;
    }

    public String getTopic() {
        return topic;
    }

    public String getWho() {
        return who;
    }


}

⌨️ 快捷键说明

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