This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Learn Java with Math: Using Fun Projects and Games and have Ron Dai on-line!
See this thread for details.
Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

MVC Architecture

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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 ]
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!