Hello, this question is from Form Validations in Spring.
Here's the method in Controller class:
May I know why do we have to send an empty Customer instance to the JSP before the form passes the field parameters to the Controller?
How does modelAttribute=customer work in HTML form? Does JSP page binds the form parameters to the Customer object right there in JSP page or they are bound once the parameters are passed to the Controller?