Spring / Spring MVC Interview questions
Advantages of Spring MVC over Struts.
Spring provides an integrated framework for all tiers of your application.
Spring provides a very clean separation between controllers, JavaBean models, and views.
Spring Controllers are configured using IoC like any other objects. This makes them easy to test and integrated with other objects managed by Spring.
Spring MVC web tiers are typically easier to test than Struts web tiers, due to the elimination forced concrete inheritance and explicit dependence of controllers on the dispatcher servlet.
Spring MVC is entirely based on interfaces that makes it very flexible unlike Struts, which forces your Action and Form objects into concrete inheritance.
Spring MVC is truly view-agnostic. you may choose view as JSP or Velocity, XLST or other view technologies.Developers can easily implement the Spring View interface to create a custom view mechanism.
Spring provides interceptors as well as controllers, making it easy to factor behaviors common to the handling of many requests.
More Related questions...