I am newbie in spring. using spring 3.0 mvc.
I am creating a spring application, I have a login form,Any one please suggest what controller i should use, as when I am using SimpleFormController its saying deprecated,
Any specific controller I can use.
First of all as everybody already told you use annotation-base controller
secondly for creating a form you can use spring form taglib
thirdly you can create method like this
this is from my sample application. House object is auto generated from form. In my form I have fields of my House object and it is send to the method as object. @RequestParam allows me to fetch the file witch is uploaded via form (POST), Model is my view model.
As you can see it is easy 🙂