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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "does MVC is used by struts?" Watch "does MVC is used by struts?" New topic

does MVC is used by struts?

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401


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

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Struts contains an implementation of MVC. It can do other things (like validation) as well.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: does MVC is used by struts?
It's not a secret anymore!