第一个servlet: 当浏览器第一次访问服务器时,为它分配一个session HttpSession session=request.getSession(); 输出该session的id与使用该session的次数 Integer count=(Integer)session.getAttribute("count"); if(count==null){ count=new Integer(1); }else{ count++; } session.setAttribute("count",count); pw.println(sessio...