Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2011 19:43
Spring Param. Controller
@RequestMapping(method = RequestMethod.GET , value="/postComment")
public ModelAndView postComment(@Valid Comment comment, BindingResult result) {
if (result.hasErrors()) {
return new ModelAndView("/error");
}
return new ModelAndView("/empty");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment