/**这是管理user信息的类 文件名为onLineUser.java */ import javax.servlet.http.*; import javax.servlet.*; import java.util.*; public class onLineUser implements HttpSessionBindingListener { public onLineUser(){ } private Vector users=new Vector(); public int getCount(){ users.trimToSize(); return users.capacity(); } public boolean existUser(String userName){ use...
[ 查看全文 ]