org.springframework.samples.petclinic.web
Class FindOwnersForm
java.lang.Object
org.springframework.samples.petclinic.web.FindOwnersForm
@Controller
@RequestMapping(method=GET)
public class FindOwnersForm
- extends java.lang.Object
JavaBean Form controller that is used to search for Owner
s by
last name.
- Author:
- Juergen Hoeller, Ken Krebs, Arjen Poutsma
Method Summary |
java.lang.String |
processSubmit(Owner owner,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model)
|
void |
setAllowedFields(org.springframework.web.bind.WebDataBinder dataBinder)
|
java.lang.String |
setupForm(org.springframework.ui.Model model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FindOwnersForm
public FindOwnersForm(Clinic clinic)
setAllowedFields
@InitBinder
public void setAllowedFields(org.springframework.web.bind.WebDataBinder dataBinder)
setupForm
@RequestMapping(value="/owners/search")
public java.lang.String setupForm(org.springframework.ui.Model model)
processSubmit
@RequestMapping(value="/owners")
public java.lang.String processSubmit(Owner owner,
org.springframework.validation.BindingResult result,
org.springframework.ui.Model model)
Copyright © 2010. All Rights Reserved.