| Author |
Struts selection
|
Shilpa Tonk
Greenhorn
Joined: Mar 15, 2010
Posts: 6
|
|
can anyone please tell me the difference b/w MVC and Struts design patterns.
And which one is better to use?
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
Struts is not a design pattern. Its a framework based on the MVC design pattern...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Shilpa Tonk
Greenhorn
Joined: Mar 15, 2010
Posts: 6
|
|
Ankit Garg wrote:Struts is not a design pattern. Its a framework based on the MVC design pattern...
Hi Ankit,
i got my answer. now i wanna know that, is front controller also a framework? if yes then which one is better and why?
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
|
Front controller is a pattern.
|
 |
Shilpa Tonk
Greenhorn
Joined: Mar 15, 2010
Posts: 6
|
|
David Newton wrote:Front controller is a pattern.
Hi David,
As you wrote that front controller is a pattern, would you tell me that struts implements both(MVC and Front Controller) the patterns.
|
 |
Deepaks Deshpande
Ranch Hand
Joined: Dec 06, 2007
Posts: 95
|
|
hi shilpa,
struts 1.1 and above uses the MVC2 architecture and the front controller design pattern. The struts Action class uses the Command Design pattern
|
Regards,
Deepak
|
 |
 |
|
|
subject: Struts selection
|
|
|