Multiple forms in single jsp page in spring application
Madhu Menda
Greenhorn
Joined: May 30, 2011
Posts: 7
posted
0
Hi All,
I'm new to spring , and my requirement is i have 3 parts(3 different forms ) in the jsp page.Each form should have its own controller. Is it possible in spring ?
Yes. I can even have one controller for all the forms. Have one method to setup all the forms, and a method per form.
Or one Controller with one method to setup all the forms, then one controller with one method per form for the POST if you want.
As long as you are using Spring 2.5 POJO based Controllers. If you are using the older style of having your Controllers implement a Controller interface, then I don't know. I have never used older versions of Spring before Spring 2.5. I don't want my classes to extend or implement a Spring class or interface and neither does Spring want you to.
Mark Spritzler wrote:Yes. I can even have one controller for all the forms. Have one method to setup all the forms, and a method per form.
Or one Controller with one method to setup all the forms, then one controller with one method per form for the POST if you want.
As long as you are using Spring 2.5 POJO based Controllers. If you are using the older style of having your Controllers implement a Controller interface, then I don't know. I have never used older versions of Spring before Spring 2.5. I don't want my classes to extend or implement a Spring class or interface and neither does Spring want you to.