Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference in patterns

 
Raju Sri
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

What is the difference between Model-View-Controller pattern and Front Controller pattern.

Thanks

Cheers
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say "Front Controller" maps to "Controller" in "Model-View-Controller".
 
Bert Bates
author
Sheriff
Posts: 8905
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raju -

here's a hint - find out how many controller servlets an MVC app has, then find out how many controller servlets a Front Controller app has.

(You know, we can't just come out and TELL you )

-Bert
 
Raju Sri
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bert,

Thanks for your hint.

Cheers
 
Bert Bates
author
Sheriff
Posts: 8905
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
raju -

I hope it's ok that I only gave you a hint... Will you post again when you have the answer?

- Bert
 
Vijay Albuquerque
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Going by Bert's HINT - Both MVC and Front Controller promote a single centralized Controller Servlet.

According to what I understand - Front Controller is a simplified form of MVC. Front Controller qualifies the Controller and View. MVC goes a step further and qualifies the Controller, View and also Data (Model).

Please correct me if I am wrong!
Thanks.

VJ
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic