Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple forms in single jsp page in spring application

 
Madhu Menda
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

Thanks
Madhu.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Madhu Menda
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


Mark




Thank you Mark ,

Can you guide me how can i do this ?


Madhu
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, I can't do that all in one post, it takes a bit more time, especially if you are new to Spring.

The best I can do for you is to direct you to the Spring documentation at www.springframework.org

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic