@RequestMapping(value = "/wfstepDelete", method = RequestMethod.GET) @RequestScoped public ModelAndView wfStepDelete(HttpServletRequest request, HttpServletResponse response) { response.setCharacterEncoding("UTF-8"); String wfstepid = null; try { wfstepid = request.getParameter("wfstepidDelete"); String msg = wfstepService.wfstepDelete(wfstepid); if (msg.equals("S")) { sess = request.getSession(false); Date date = new Date(); String modifiedDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date); auditLogService.setAuditLogSave( sess.getAttribute("userId").toString(), "D", "Process Step", "ROW", String.valueOf(wfstepid), "1", modifiedDate, sess.getAttribute("userName").toString()); request.setAttribute("wfstepDeleteSuccess", "Work Flow Step has been deleted"); } else { request.setAttribute("wfstepDeleteError", "Work Flow Step has not been deleted"); } } catch (Exception e) { request.setAttribute("wfstepDeleteError", "Work Flow Step has not been deleted"); e.printStackTrace(); } return new ModelAndView("wfstepHome", "wfstepAdd", new WFStep()); }