public void update(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String pages = "../../../errors.jsp";
		String groupid[] = request.getParameterValues("groupid");
		List<Admingroup> all = new ArrayList<Admingroup>();
		for (int x = 0; x < groupid.length; x++) {
			Admingroup group = new Admingroup();
			group.setGroupid(Integer.parseInt(groupid[x]));
			all.add(group);
		}
		Admin admin = new Admin();
		admin.setAdminflag(1);
		admin.setAdminid(request.getParameter("adminid"));
		admin.setNote(request.getParameter("note"));
		admin.setPassword(new MD5Code().getMD5ofStr(request
				.getParameter("password")));
		try {
			if (ServerFactory.getIServerDAOInstance().doUpdateAdmin(admin, all)) {
				request.setAttribute("msg", MessageUtil
						.get("admin.update.true"));
			} else {
				request.setAttribute("msg", MessageUtil
						.get("admin.update.false"));
			}
			pages = "admin_operate_do.jsp";
			request.setAttribute("url", "AdminServlet?status=list");
		} catch (Exception e) {
			e.printStackTrace();
		}
		request.getRequestDispatcher(pages).forward(request, response);
	}