• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multiple forms using one Controller.

 
Ranch Hand
Posts: 419
Mac jQuery Objective C
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I would like to know is there any controller in Spring MVC where I can handle multiple forms from a jsp using a single controller.
 
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

pawan chopra wrote:Hi,

I would like to know is there any controller in Spring MVC where I can handle multiple forms from a jsp using a single controller.



Yes, make your Controller a Pomo controller, do not implement any of the old Controller interfaces, that is the old way of doing things.

Now you either use @RequestMapping on your controller methods, or using XML, configure you mapping to your methods using the correct MappingHandler class configuration all in XML.

I recommend looking at the current Spring Framework documentation.

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic