This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ]
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.
Joined: Nov 22, 2002
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.
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 ]