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.
Arathi Raj
Ranch Hand
Joined: Nov 22, 2002
Posts: 90
posted
0
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 ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.