Book Image

Spring MVC Beginner's Guide

By : Amuthan Ganeshan
Book Image

Spring MVC Beginner's Guide

By: Amuthan Ganeshan

Overview of this book

Table of Contents (19 chapters)
Spring MVC Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Working with Spring Tag Libraries

In previous chapters, we learned how to put data into the model from the controller, but we haven't seen how to do this the other way around. This means that we haven't learned how to put the data from the view into the model. In Spring MVC, the process of putting an HTML form element's values into model data is called form binding.

Spring MVC provides some JSP tag libraries to make it easier to bind form elements to model data. Spring tag libraries also support various other common functionalities, such as, externalizing messages and error handling. In this chapter, we are going to learn more about how to make use of these predefined tag libraries of Spring.

After finishing this chapter, we will have a good idea about the following topics:

  • Serving and processing web forms

  • Form binding and whitelisting

  • Spring tag libraries