• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple forms using one Controller.

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • 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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic