📄 talkform.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 + -