This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts selection

 
Shilpa Tonk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please tell me the difference b/w MVC and Struts design patterns.
And which one is better to use?
 
Ankit Garg
Sheriff
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts is not a design pattern. Its a framework based on the MVC design pattern...
 
Shilpa Tonk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Front controller is a pattern.
 
Shilpa Tonk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic