I have the following code snippet in Spring MVC (3.0).
@RequestMapping(value="/add", method = RequestMethod.POST) public String handleAddResourceGroup(@Valid ResourceGroup resourceGroup, BindingResult bindingResult, Model model) { if (bindingResult.hasErrors()) { model.addAttribute("flash.validationErrors", bindingResult.getAllErrors()); return "add"; }
How to access a model attribute named "flash.validationErrors" in Freemarker?
source share