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
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
It's not a secret anymore!