Part 2. Spring on the web

 

Spring is often used to develop web applications. Therefore, in part 2 you’ll see how to use Spring’s MVC framework to add a web front end to your application.

In chapter 5, “Building Spring web applications,” you’ll learn the basics of Spring MVC, a web framework built on the principles of the Spring Framework. You’ll discover how to write controllers to handle web requests and see how to transparently bind request parameters and payload to your business objects while providing validation and error handling at the same time.

Chapter 6, “Rendering web views,” continues what chapter 5 started by showing you how to take model data produced in Spring MVC controllers and render it as HTML to be served to a user’s browser. This chapter includes discussions of JavaServer Pages (JSP), Apache Tiles, and Thymeleaf templates.

In Chapter 7, “Advanced Spring MVC,” you’ll learn a few more advanced techniques to use when building web applications, including custom Spring MVC configuration options, handling multipart file uploads, dealing with exceptions, and passing data across requests using flash attributes.

Chapter 8, “Working with Spring Web Flow,” will show you how to build conversation, flow-based web applications using the Spring Web Flow framework.

As security is an important aspect of many applications, chapter 9, “Securing Spring,” will show you how to use Spring Security to secure your web application and protect the information it serves.