File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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 agree. Here's the link:
subject: Do I have a seperate springMVC controllor for every action?
Question on MVC object creation
naive questions about mvc
Is this MVC ?
OO design question for game
Should I go for a Bean or an array or map
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014