From 16fc083310d5414f2fbca205f8de8a2c25082961 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Fri, 3 Jun 2011 09:50:12 +0000 Subject: [PATCH] SPR-8391 Minor documentation fixes --- spring-framework-reference/src/mvc.xml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/spring-framework-reference/src/mvc.xml b/spring-framework-reference/src/mvc.xml index e893fa569f..55a5f5de9d 100644 --- a/spring-framework-reference/src/mvc.xml +++ b/spring-framework-reference/src/mvc.xml @@ -237,7 +237,7 @@ - The requesting processing workflow in Spring Web MVC + The request processing workflow in Spring Web MVC (high level) @@ -843,7 +843,7 @@ public String findOwner(@PathVariable("ownerId" @RequestMapping(value="/owners/{ownerId}/pets/{petId}", method=RequestMethod.GET) public String findPet(@PathVariable String ownerId, @PathVariable String petId, Model model) { - Owner owner = ownerService.findOwner(ownderId); + Owner owner = ownerService.findOwner(ownerId); Pet pet = owner.getPet(petId); model.addAttribute("pet", pet); return "displayPet"; @@ -3208,21 +3208,22 @@ public class SimpleController { The strategy for generating a name after adding a - Set, List - or array object is to peek into the collection, take the short class - name of the first object in the collection, and use that with - List appended to the name. Some examples will make - the semantics of name generation for collections clearer... + Set or a List + is to peek into the collection, take the short class name of the first object + in the collection, and use that with List appended to the + name. The same applies to arrays although with arrays it is not necessary to + peek into the array contents. A few examples will make the semantics of name + generation for collections clearer: - An x.y.User[] array with one or more + An x.y.User[] array with zero or more x.y.User elements added will have the name userList generated. - An x.y.Foo[] array with one or more + An x.y.Foo[] array with zero or more x.y.User elements added will have the name fooList generated.