This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 415

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: 17271
    
    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
 
Have you checked out Aspose?
 
subject: Multiple forms using one Controller.
 
jQuery in Action, 3rd edition