File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

does MVC is used by struts?

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

may i know is there any difference between Struts and MVC architecture?



regards,
rahul
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts contains an implementation of MVC. It can do other things (like validation) as well.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even though Struts provides the framework for creating a Model 2 web application (the closest thing to MVC possible over the HTTP ptotocol), you are still responsible for putting the functionality of your application in the appropriate places.

For example, Struts will not prevent you from creating travesties like performing SQL queries in the JSPs.

Also note that Model 2 web applications are possible to create without Struts or any other large framework.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic