protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String userName = request.getParameter("username");
		String password = request.getParameter("password");
		System.out.println(userName + " " + password);
		List <User> res =  qs.judge(userName, password);
		if(res == null)
			response.getWriter().print("false");
		else {
			Boolean flag = qs.updatestate(res.get(0).uid, 1);
			System.out.println("update state " + res.get(0).uid + " 1 " + flag);
			outputuser(res, response);
		}
	}