The Advantages of Spring Over Struts

104 46
    • Spring and Struts are both frameworks for creating Java applications in enterprise environments. Although they overlap in purpose, Spring is a general purpose framework that can be used for building both Web-based and non-Web based applications. Struts, released by the same group that makes the Apache Web Server, is designed specifically for Java Web applications.

    Clarity

    • Spring is an extension of Java objects and provides a clear division between Models, Views and Controllers. Known as MVC (Model-View-Controller), this style of programming enforces a separation between the data (Model), business logic (Controller) and presentation logic (View) of an application. While Struts is capable of performing these actions, there is overlap that can be confusing to developers.

    Flexibility

    • Struts forces users into a concrete development path by strictly defining what objects may take properties from other objects. Spring allows you to configure and connect objects to one another by defining your own inheritance properties through Java interfaces.

    Customization

    • Spring lets you customize how you present data to your user. You can integrate it with view technologies such as XLST or custom template languages. It is easier to support a wide variety of display devices using these technologies.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.