wood burning stoves*
The moose likes Spring and the fly likes Multiple forms using one Controller. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Multiple forms using one Controller." Watch "Multiple forms using one Controller." New topic
Author

Multiple forms using one Controller.

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 410

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.


Pawan Chopra
SCJP - DuMmIeS mInD
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple forms using one Controller.