这是一个简单的基于Ajax和DWR实现的无刷新在线实时聊天程序
源代码在线查看: forumbean.java
package com.lan.Forum;
import java.util.Date;
public class Forumbean {
private String username="";
private String content="";
private String datetime=null;
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getDatetime() {
return datetime;
}
public void setDatetime(String datetime) {
this.datetime = datetime;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}