Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Other Application Frameworks
Do I have a seperate springMVC controllor for every action?
Joined: Jun 20, 2004
Jul 27, 2007 07:49:00
I'm trying to model my web app I�m creating and I can't figure out how to map the controllers to the model.
Ok so if I have a OrderManager class that can "process and order", "edit the quantity of the order", or "cancel an order"
Do I create 3 controller classes that launch the three different methods?
or do I create one controller that somehow decides which task I want it to do, which then launches the specific object.method()??
Any help would be appreciated.
Joined: Jul 30, 2006
Aug 03, 2007 06:52:00
Consider using MultiActionController. Its much like
Aggregate Actions in Struts
which means a set of related actions as a single action class.
Refer to Spring documentation for the spring related syntax.
P R A V E E N
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Do I have a seperate springMVC controllor for every action?
Question on MVC object creation
naive questions about mvc
Should I go for a Bean or an array or map
OO design question for game
Is this MVC ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015