ServletContext sc = request.getSession().getServletContext();
ServerContext sctx = ServerContextFactory.get(sc);
//��õ�ǰ��� index.jsp ҳ������нű�session
//Collection sessions = sctx.getScriptSessionsByPage("/ind.jsp");
Collection sessions = sctx.getScriptSessionsByPage("/fly-web/ind.jsp");
Util util = new Util(sessions);
//������Щҳ���е�һЩԪ��
util.removeAllOptions("users");
util.addOptions("users", users, "username");
util.removeAllOptions("receiver");
util.addOptions("receiver", users,"userid","username");
//������������¼
util.addOptions("ms", ms,"msid","hahah");
if(!flag){
return null;
}
return user.getUserid();