I am implementing the Spring PetClinic Project from here
http://docs.spring.io/docs/petclinic.html
I have a small doubt, the user clicks the find owner page from the welcome page.
Controller code which handles the request
Now the control is moved to the Search.jsp page, which also allows the user to add a new owner.
My doubt is why in the model.addAttribute a new owner object is put?.
What is the need for that?. Why doesn't the flow directly navigated to Search.jsp
The Owner class has the properties of the owner like firstName, lastName. etc.
Please advice if you need any more information in the code. I will put it here.
Search.jsp
Thanks. I would really appreciate the advice.