This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts selection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts selection" Watch "Struts selection" New topic
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
Sheriff

Joined: Aug 03, 2008
Posts: 9400
    
  20

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

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: 114

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

 
Have you checked out Aspose?
 
subject: Struts selection
 
It's not a secret anymore!