• Animal
  • Auto
  • Computers
  • Education
  • Finance
  • Health
  • Math
  • Mobiles
  • Programming
  • Science
  • Sports
  • Technology
  • Terms
  • Web

  • Difference Between Spring MVC and Struts

    Spring MVC vs Struts

    Both Spring and Struts are open source application frameworks for Java Platform. Both follow MVC architecture but have differences between them. Check out the Differences between Spring and Struts frameworks.


    Spring MVC Framework

    1. Spring framework was written by Rod Johnson in October 2002.
    2. In Spring, View can be redirected to Servlet / JSP / HTML / PDF / Excel / XML or any external source. This is achieved through View Resolvers in Spring framework.
    3. Spring MVC has more view resolvers like Tiles, XSTL, Velocity/FreeMarket, JasperReports, Excel, PDF.
    4. Spring MVC provides more handler mappings.
    5. It also provides more model transfer.
    6. Spring offers complete Decoupling between layers in MVC.
    7. Spring offers IOC (inversion of control) and AOP (Aspect Oriented Programming).
    8. Spring clear module division between Model, View and Controller.


    Struts Framework

    1. Struts framework was written by Craig McClanahan and donated to the Apache Foundation in May, 2000.
    2. In Struts, View can be either Servlet / JSP / HTML.
    3. Struts doesn’t have specific view resolvers.
    4. Struts doesn’t have specific handler mappings but uses Action Mappings.
    5. It has fewer model transfer.
    6. Struts offers limited Decoupling between layers in MVC.
    7. Struts uses IOC internally but doesn’t provide to the programmer / developer.
    8. Struts mixes Controller and Model.

    These are the Difference between Spring and Struts Frameworks, If you know more differences, Do contribute by leaving the same in the below comment. I will be happy to add them in this post.

    Posted under: Programming
    1957 readers are already subscribed to this blog! Why don't you be one of them? Subscribe to this blog via your favorite RSS feed reader or by entering your email address on the form below:

    Leave a Reply

    page counter
    NiharsWorld on Twitter NiharsWorld on Facebook NiharsWorld RSS Feed