protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String actionUrl = "";
		String mode = request.getParameter("mode");
		request.setCharacterEncoding("utf-8");
		HttpSession session = request.getSession();
		response.setContentType("text/html; charset=utf-8");
		User user = new User();
		
		if(mode.equals("withdrawal"))
		{
			String id = (String) session.getAttribute("id");
			
			ArrayList<String> errorMsgs = new ArrayList<String>();
			try 
			{
				if(session.getAttribute("adm").equals("T"))
				{
					id = request.getParameter("id");
					if (UserDAO.removeUser(id)) 
					{
						request.setAttribute("msg", id+" 탈퇴 완료");
						actionUrl = "action/success.jsp";
					}
					else
					{
						errorMsgs.add("탈퇴 실패");
						request.setAttribute("errorMsgs", errorMsgs);
						actionUrl = "action/error.jsp";
					}
				}
			} 
			catch (NoSuchAlgorithmException | SQLException
					| NamingException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		else if(mode.equals("view"))
		{
			String id = (String) session.getAttribute("id");
			try 
			{
				if(session.getAttribute("adm").equals("T"))
				{
					id = request.getParameter("id");
					user = UserDAO.getUser(id);
				}
				else
				{
					id = (String)session.getAttribute("id");
					user = UserDAO.getUser(id);
				}
				request.setAttribute("user",user);
				actionUrl = "user/user_edit.jsp";
			}
			catch (SQLException
					| NamingException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
		else if(mode.equals("my"))
		{
			String id = (String)session.getAttribute("id");
			try 
			{
					int tripPage = getIntFromParameter(request.getParameter("tpage"), 1);
					PageResult<Trip> trips = TripDAO.getUserPage(tripPage, 10, id);
					request.setAttribute("trips", trips);
					request.setAttribute("tripUserListCnt", TripDAO.tripUserListCnt(id));
					request.setAttribute("tpage", tripPage);
					
					int tripPartnerPage = getIntFromParameter(request.getParameter("tppage"), 1);
					PageResult<Trip> tripPartners = TripDAO.getUserPartnerPage(tripPartnerPage, 10, id);
					request.setAttribute("tripPartners", tripPartners);
					request.setAttribute("tripPartnerListCnt", TripDAO.tripPartnerListCnt(id));
					request.setAttribute("tppage", tripPartnerPage);
					actionUrl = "view/mypage.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);
		
	}