• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Multiple forms in single jsp page in spring application

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic