protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String mode = request.getParameter("mode");
		String actionUrl ="index.jsp";
		request.setCharacterEncoding("UTF-8");
		response.setContentType("text/html; charset=utf-8");
		if(mode.equals("list"))
		{		
			try 
			{
					int userPage = getIntFromParameter(request.getParameter("upage"), 1);
					
					PageResult<User> users = UserDAO.getPage(userPage, 10);
					request.setAttribute("users", users);
					request.setAttribute("userListCnt", UserDAO.userListCnt());
					request.setAttribute("upage", userPage);
					
					int boardPage = getIntFromParameter(request.getParameter("bpage"), 1);
					PageResult<Board> boards = BoardDAO.getPage(boardPage, 10);
					request.setAttribute("boards", boards);
					request.setAttribute("boardListCnt", BoardDAO.boardListCnt());
					request.setAttribute("bpage", boardPage);
					
					int tripPage = getIntFromParameter(request.getParameter("tpage"), 1);
					PageResult<Trip> trips = TripDAO.getPage(tripPage, 10);
					request.setAttribute("trips", trips);
					request.setAttribute("tripListCnt", TripDAO.tripListCnt());
					request.setAttribute("tpage", tripPage);
					actionUrl = "view/admin.jsp";
			}
			catch (SQLException | NamingException e) {
				request.setAttribute("error", e.getMessage());
				e.printStackTrace();
				actionUrl = "action/error.jsp";
			}
		}
		
		RequestDispatcher dispatcher = request.getRequestDispatcher(actionUrl);
		dispatcher.forward(request,  response);
		
	}