{
WebContext ctx = WebContextFactory。get();
HttpSession session=ctx。getSession();
TAdmin admin=(TAdmin)adminList。get(0);
session。setAttribute("userType", 0);
session。setAttribute("admin", admin);
java+mysql城市公交查询系统的设计与实现(8):http://www.youerw.com/jisuanji/lunwen_94067.html