Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC have how many controllers

 
Abdul Gafoor
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a project how many Controllers is possible
I am following MVC design Pattern
but I am not using Struts .
 
Henry Lowell
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic