@Override public void proccess(HttpServletRequest request, HttpServletResponse response) { int ID = Integer.parseInt(request.getParameter("id")); boolean ltb = DAOFactory.getMySQLDAOFactory().getTagDAO().deleteTags(ID); boolean result = DAOFactory.getMySQLDAOFactory().getGuideDAO().delete(ID); request.setAttribute("data", result); dispatch(request, response); }
@Override public void proccess(HttpServletRequest request, HttpServletResponse response) { int ID = Integer.parseInt(request.getParameter("id")); boolean flag = DAOFactory.getMySQLDAOFactory().getCommentsDAO().like(ID); if (flag) { request.setAttribute("data", "true"); } else { request.setAttribute("data", "false"); } dispatch(request, response); }