In the last couple of chapters in the book, we have seen that all examples were based on a standalone application using the Spring Framework. We have seen how Spring works to provide important features, such as the dependency injection pattern, bean life cycle management, AOP, cache management, and Spring, in the backend using the JDBC and ORM modules. In this chapter, we will see how Spring works in the web environment to address some common problems of any web application, such as workflow, validations, and state management.
Like other modules in the Spring Framework, Spring has introduced its own web framework, known as Spring Web MVC. It is based on the Model-View-Controller (MVC) pattern. Spring Web MVC supports the presentation tier, and helps you to build a flexible and loosely coupled web-based application. The Spring MVC module addresses the problem of testing the web components in the enterprise application...