aspose file tools*
The moose likes Struts and the fly likes MVC Architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "MVC Architecture" Watch "MVC Architecture" New topic
Author

MVC Architecture

Arathi Raj
Ranch Hand

Joined: Nov 22, 2002
Posts: 90
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

Joined: Nov 22, 2002
Posts: 90
Some one please answer my questions

Thanks
Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96


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

Joined: Nov 22, 2002
Posts: 90
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

Joined: Nov 16, 2004
Posts: 96

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MVC Architecture