wood burning stoves 2.0*
The moose likes Struts and the fly likes does MVC is used by struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "does MVC is used by struts?" Watch "does MVC is used by struts?" New topic
Author

does MVC is used by struts?

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

Hey,

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



regards,
rahul
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
Struts contains an implementation of MVC. It can do other things (like validation) as well.


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60740
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: does MVC is used by struts?
 
Similar Threads
struts+spring+hibernate (architecture , layers)
Struts architecture
Why to integrate Struts-Spring-Hibernate ?
What is aspectJ?
MVC - A PATTERN OR A FRAMEWORK?