This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes MVC have how many controllers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "MVC have how many controllers" Watch "MVC have how many controllers" New topic

MVC have how many controllers

Abdul Gafoor

Joined: Nov 22, 2005
Posts: 11
In a project how many Controllers is possible
I am following MVC design Pattern
but I am not using Struts .
Henry Lowell
Ranch Hand

Joined: May 29, 2006
Posts: 63
If you are not using Struts, then why did you ask in the Strust forum? This probably belongs in the Application Frameworks forum.

But to answer your question, typically an MVC web framework will have 1 single controller. It's called the Front Controller. As I mentioned in your other post about Sruts, however, arguments can be made about Action classes. And I think SpringMVC considers there "action" classes to be controllers. And some people consider JSF backing beans to be controllers.

It is sorta covered in the JavaRanch Style Guide.
subject: MVC have how many controllers
Similar Threads
what should a controller do??
Can same command class be used by 2 different controllers?
event handling for med sized MVC app
struts have more than one controller or not
spring 3