protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		String method = request.getParameter("method");

		HttpSession session = request.getSession();
		UserContent userContent = (UserContent) session
				.getAttribute("userContent");
		if (userContent == null) {
			response.sendRedirect("/nextplus-blog/admin/login.jsp");
		} else {
			if (method.equals("edit")) {
				preEdit(request, response);
			} else if (method.equals("update")) {
				update(request, response);
			} else if (method.equals("delete")) {
				delete(request, response);
			} else if (method.equals("list")) {
				list(request, response);
			} else if (method.equals("add")) {
				add(request, response);
			} else {
				list(request, response);
			}
		}

	}