@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		int id = Integer.valueOf(request.getParameter("id"));
		int state = Integer.valueOf(request.getParameter("state"));
		if(state != 0 && state != 1){
			System.out.println("change num error");
			response.getWriter().print("false");
		}
		else{
			Boolean  flag = qs.updatestate(id, state);
			response.getWriter().print(flag);
			System.out.println("update state" + id + " " + state + " " + flag);
		}
		
	}