O'Reilly logo

Spring MVC: A Tutorial by Paul Deck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5

   Data Binding and the Form Tag Library

Data binding is a feature that binds user input to the domain model. Thanks to data binding, HTTP request parameters, which are always of type String, can be used to populate object properties of various types. Data binding also makes form beans (e.g. instances of ProductForm in the previous chapters) redundant.

To use data binding effectively, you need the Spring form tag library. This chapter explains data binding and the form tag library and provides examples that highlight the use of the tags in the form tag library.

Data Binding Overview

Due to the nature of HTTP, all HTTP request parameters are strings. Recall that in the previous chapters you had to parse a string to a float in order ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required