小弟是感学的看不错来是哪里错了,求大神帮帮忙!!!
public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{
HttpSession session = request.getSession();
int count = 50;
session.setAttribute("count", count);
session.setAttribute("userName","accp");
String userName = session.getAttribute("userName");
PrintWriter out = response.getWriter();
out.println("你好,",userName);
out.close();
} |