@RequestMapping("/saveOrUpdatePackages") public String saveOrUpdatePackages( @ModelAttribute("packages") Packages packages, HttpSession session) { Boolean isContinue = packages.getContinue(); packages = packageService.saveOrUpdatePackages(packages); if (isContinue) { return "redirect:/package/editPackages/0"; } return "redirect:/package/packages"; }