File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 9293
    
  17

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

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

 
jQuery in Action, 2nd edition
 
subject: Struts selection