posted 13 years ago
Hi all,
I have just started to learn Spring MVC and learned about formBackingObject method.
I have wrote a simple program to understand the concept .
MyCustomFormController
Person Class
I came to know that formBackingObject is called twice ( first time when form is loaded with GET request and when it is submitted with POST method) but every time I'm getting null values
when I print the Person object where as I'm getting values in onSubmit method.
Can you please explain what is the significance of formBackingObject method ?
Thanks in advance