Book Image

Spring MVC: Beginner's Guide - Second Edition

By : Amuthan Ganeshan
Book Image

Spring MVC: Beginner's Guide - Second Edition

By: Amuthan Ganeshan

Overview of this book

Spring MVC helps you build flexible and loosely coupled web applications. The Spring MVC Framework is architected and designed in such a way that every piece of logic and functionality is highly configurable. Also, Spring can integrate effortlessly with other popular web frameworks such as Struts, WebWork, Java Server Faces, and Tapestry. The book progressively teaches you to configure the Spring development environment, architecture, controllers, libraries, and more before moving on to developing a full web application. It begins with an introduction to the Spring development environment and architecture so you're familiar with the know-hows. From here, we move on to controllers, views, validations, Spring Tag libraries, and more. Finally, we integrate it all together to develop a web application. You'll also get to grips with testing applications for reliability.
Table of Contents (20 chapters)
Spring MVC Beginner's Guide - Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Summary


At the start of this chapter, you learned about the duties of the Dispatcher servlet and how it maps requests using the @RequestMapping annotation. Next you saw what the web application context is and how to configure a web application context for our web application. After that, you had a brief introduction tot view resolvers and how InternalResourceViewResolver resolves the view file for a given logical view name.

You also learned the concept of MVC and saw the overall request flow of a Spring MVC application. Then you learned about the web application architecture. In the web application architecture section, you saw how to create and organize code under the various layers of a Spring MVC application such as the Domain layer, the Persistence layer, and the Service layer. During its course, we showed you how to retrieve product domain objects from the repository and present them on a web page using the controller. You also learned where a service object fits in. Finally, you got...