Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Android Security Essentials Live Lessons this week in the Android 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.

I agree. Here's the link:
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