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

This commit is contained in:
Oliver Gierke 2010-06-22 12:41:55 +00:00
parent 569cb91573
commit 868d3a4451
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>