Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Spring MVC and Struts MVC [closed]

What is the major difference between the Spring MVC and Struts MVC?

like image 446
Krishna Avatar asked May 30 '11 06:05

Krishna


People also ask

What is Struts MVC?

Struts is an open source framework that extends the Java Servlet API and employs a Model, View, Controller (MVC) architecture. It enables you to create maintainable, extensible, and flexible web applications based on standard technologies, such as JSP pages, JavaBeans, resource bundles, and XML.

How spring MVC is different from MVC?

The MVC term signifies that it follows the Model View Controller design pattern. So, Spring MVC is an integrated version of the Spring framework and Model View Controller. It has all the basic features of the core Spring framework like Dependency Injection and Inversion of Control.

What is the difference between spring MVC and spring rest?

Spring MVC Framework and REST While the traditional MVC controller relies on the View technology, the RESTful web service controller simply returns the object and the object data is written directly to the HTTP response as JSON/XML.


1 Answers

The major difference between Spring MVC and Struts is: Spring MVC is loosely coupled framework whereas Struts is tightly coupled. For enterprise Application you need to build your application as loosely coupled as it would make your application more reusable and robust as well as distributed.

like image 71
hossaindoula Avatar answered Sep 28 '22 03:09

hossaindoula