aspose file tools*
The moose likes Spring and the fly likes Multiple forms in single jsp page in spring application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Multiple forms in single jsp page in spring application" Watch "Multiple forms in single jsp page in spring application" New topic
Author

Multiple forms in single jsp page in spring application

Madhu Menda
Greenhorn

Joined: May 30, 2011
Posts: 7
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Madhu Menda
Greenhorn

Joined: May 30, 2011
Posts: 7
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

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
 
 
subject: Multiple forms in single jsp page in spring application