Post a Job  |   Ask a Question?   |   Already registered? login or register
subrat rout
28/04/2015 03:43 AM

what is form backing object what is the purpose of it


what is form backing object what is the purpose of it
Spam    4 Comments

sivaiah,giddaluru
28/04/2015 10:08:13
hi subrat, the formBackingObject(request) is method , this is used in the simpleFormController , assume the student object is already in the database with id=2; if you want to update that record with different values then you should get that old values from the database , in this case formBakingObject method will be helpful to you. I hope you get it.

Ashok,Ankamreddy
28/04/2015 11:30:49
If you are using simple form controller , when the request comes to dispatcher servlet it calls handle request method on simple form controller..it it will go to super class(simple form controller)..executes..it is initial phase request..right??so it needs to render source form page...while rendering it calls form backing object..so if you want to present any data in source page itself you can write command object values in that method..so that they can be reflect as part of the source phase..

Ashok,Ankamreddy
28/04/2015 11:33:30
hi everyone..If there is any thing wrong in my explanation correct me..

subrat,rout
28/04/2015 12:02:25
thanks Ashok,Ankamreddy

Languages :
xml