From 868d3a4451a674eccf72da5f637b65f1b96a3ce4 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 22 Jun 2010 12:41:55 +0000 Subject: [PATCH] Fixed language attribute in code sample to activate currently missing syntax highlighting. --- spring-framework-reference/src/mvc.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-framework-reference/src/mvc.xml b/spring-framework-reference/src/mvc.xml index 46e2a4585f..dc7e0b7e4f 100644 --- a/spring-framework-reference/src/mvc.xml +++ b/spring-framework-reference/src/mvc.xml @@ -1092,7 +1092,7 @@ public class RelativePathUriTemplateController { Invalid ordering of BindingResult and @ModelAttribute - @RequestMapping(method = RequestMethod.POST) + @RequestMapping(method = RequestMethod.POST) public String processSubmit(@ModelAttribute("pet") Pet pet, Model model, BindingResult result) { … } @@ -1101,7 +1101,7 @@ public String processSubmit(@ModelAttribute("pet") Pet pet BindingResult. To get this working you have to reorder the parameters as follows: - @RequestMapping(method = RequestMethod.POST) + @RequestMapping(method = RequestMethod.POST) public String processSubmit(@ModelAttribute("pet") Pet pet, BindingResult result, Model model) { … }