资源简介
监听器显示登陆用户列表,并实现踢人功能
HttpSessionAttributeListener
代码片段和文件信息
package cn.csdn.web.domain;
public class User {
private String username;
private String password;
public User() {
super();
// TODO Auto-generated constructor stub
}
public User(String username String password) {
super();
this.username = username;
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
评论
共有 条评论