public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		HttpSession session = request.getSession();
		SimulateDB simulateDB = new SimulateDB();
		String action = request.getParameter("do");
		
		long id = 0;
		try {
			id = Long.parseLong(request.getParameter("id"));
		} catch(NumberFormatException e){}
		
		if(action.equals("add")){
			RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/jsp/bookAdd.jsp");
			dispatcher.forward(request, response);
			}
		else if (action.equals("edit")){
			Book book = simulateDB.loadBookById(id,  session);
			request.setAttribute("book",book);
			RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/jsp/bookEdit.jsp");
			dispatcher.forward(request, response);
		}
		else if (action.equals("delete")){
		simulateDB.deleteBookById(id, session);
		response.sendRedirect(request.getContextPath() + "/bookList");
		}

	}