This question has cropped up here a few times. I believe the consensus is that what most people know as "MVC" is an "architectural pattern" which in turn can make use of several "design patterns", if needed. A framework is an actual implementation of some sort, designed to be extended, adapted or customised as appropriate to the needs of your application.
MVC is a Design Pattern and the Struts is the Framework to implement MVC
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
I would agree with Frank that MVC is rather an Architectural Pattern than a Design Pattern - but the distinction probably isn't that important. Struts is *one* implementation of the pattern - there are, of course, an uncountable amount of others.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Hi all, whatz the difference between design patterns and architectural pattern
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
Originally posted by Pradeep Bhat: Hi all, whatz the difference between design patterns and architectural pattern
It's mostly a matter of magnitude: - a Design Pattern is a solution to a rather localized problem - like "how can several classes share and customize a basic algorithm" -> Template Method. - an Architectural Pattern is a solution to a rather global problem and therefore often more abstract than a Design Pattern - like "how can I shape the system, so that changes in the UI don't affect the model" -> MVC
Fisher Daniel
Ranch Hand
Joined: Sep 14, 2001
Posts: 582
posted
0
Dear all, In J2EE, there are a lot of design patterns, like Session Facade, Value Object, etc... Are these Architectural Patterns ? thanks daniel
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
Originally posted by Fisher Daniel: Dear all, In J2EE, there are a lot of design patterns, like Session Facade, Value Object, etc... Are these Architectural Patterns ?
No, those are Design Patterns - they are rather affecting a small number of objects instead of the whole architecture, afaik.