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

📄 talkform.java

📁 留言簿或论坛是网站必备的组成部分。它不仅是网站访问者发表意见的场所
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -