@RequestMapping(value = "/chapter/new", method = RequestMethod.POST) public String add(@ModelAttribute("chapter") Chapter chapter, BindingResult result) { validatorHelpers.validate(chapter, result); if (result.hasErrors()) { return "/chapter/new"; } else { chapterModel.createChapter(chapter); ChapterHelpers.getInstance().showTree(); return "redirect:/"; } }