Chapter 5. Building Spring web applications

This chapter covers

  • Mapping requests to Spring controllers
  • Transparently binding form parameters
  • Validating form submissions

As an enterprise Java developer, you’ve likely developed a web-based application or two. For many Java developers, web-based applications are their primary focus. If this is your experience, then you’re well aware of the challenges that come with these systems. Specifically, state management, workflow, and validation are all important features that need to be addressed. None of these is made any easier given the HTTP protocol’s stateless nature.

Spring’s web framework is designed to help you address these concerns. Based on the Model-View-Controller (MVC) pattern, Spring ...

Get Spring in Action, 4th Edition: Covers Spring 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.