/** * @param map : holds require attributes * @param request :for getting session * @return: to the specified path * @throws QuestionBankSystemException: handle all system related exceptions * @throws QuestionBankException: handle all runtime exceptions */ @RequestMapping(value = "/logout") public String logoutUser(Map<String, Object> map, HttpServletRequest request) throws QuestionBankSystemException, QuestionBankException { userService.doSetupForPage(map, ""); // do setup for page map = userService.logoutUser(map, request); // for logging out user map = userService.getDummyData(map, 1, 5, null); return "home"; // redirecting to home page }