• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MVC Architecture

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is MVC an architecture or a pattern or both? In HF servlets and jsp in design pattern chapter it says that struts is fancy example of using Front controller pattern. I want to know is Struts a framework which uses both MVC pattern and Front controller pattern?. Do clear my doubts.
Thanks
[ October 26, 2005: Message edited by: Arathi Raj ]
 
Arathi Raj
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some one please answer my questions

Thanks
 
Ranch Hand
Posts: 96
Scala VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Is MVC an architecture or a pattern or both?



If you don't need an yes/no answer to this question, MVC is design strategy for breaking up a certain type of problem into pieces so that they can be attacked separately.


I want to know is Struts a framework which uses both MVC pattern and Front controller pattern?



Struts is a framework that primarily addresses the controller (C-part) component of MVC. Therefore, it is an implementation of the Front Controller pattern.
 
Arathi Raj
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Samuel
If struts is a framework that primarily addresses the controller (C-part) component of MVC then why everywhere they mention that " Struts Frame work is the implementation of Model-View-Controller (MVC) design pattern". and also I have read that if at all if we want to implement MVC desing pattern in our application it is best to go with Struts. why is it so. Can u please clear the doubt.

Thanks
 
Samuel Cox
Ranch Hand
Posts: 96
Scala VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, I would go to the source for some good information. Read the 'Welcome to Struts' section at http://struts.apache.org/struts-doc-1.2.7/index.html and follow the link given for MVC. For more detail on Struts + MVC, visit http://struts.apache.org/struts-doc-1.2.7/userGuide/introduction.html#mvc

My interpretation of the preceding links: Struts does contribute some to the View via ActionForms, taglibs, and tiles; however, its main functions are receive requests from some user, execute the appropriate business logic, which is contained in the Model, and send back the appropriate response.
[ November 01, 2005: Message edited by: Samuel Cox ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic