Fixed language attribute in code sample to activate currently missing syntax highlighting.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3440 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Oliver Gierke 2010-06-22 12:41:55 +00:00
parent e7319ba5e5
commit dda86a0756
1 changed files with 2 additions and 2 deletions

View File

@ -1092,7 +1092,7 @@ public class RelativePathUriTemplateController {
<example>
<title>Invalid ordering of BindingResult and @ModelAttribute</title>
<programlisting lang="java">@RequestMapping(method = RequestMethod.POST)
<programlisting language="java">@RequestMapping(method = RequestMethod.POST)
public String processSubmit(<emphasis role="bold">@ModelAttribute("pet") Pet pet</emphasis>,
Model model, <emphasis role="bold">BindingResult result</emphasis>) { … }</programlisting>
@ -1101,7 +1101,7 @@ public String processSubmit(<emphasis role="bold">@ModelAttribute("pet") Pet pet
<interfacename>BindingResult</interfacename>. To get this working
you have to reorder the parameters as follows:</para>
<programlisting lang="java">@RequestMapping(method = RequestMethod.POST)
<programlisting language="java">@RequestMapping(method = RequestMethod.POST)
public String processSubmit(<emphasis role="bold">@ModelAttribute("pet") Pet pet</emphasis>,
<emphasis role="bold">BindingResult result</emphasis>, Model model) { … }</programlisting>
</example>