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

Understanding request parameters


Matrix variables and path variables are a great way of binding variables in the URL request path. However, there is one more way to bind variables in the HTTP request, not only as a part of the URL but also in the body of the HTTP web request, which are the so-called HTTP parameters. You might have heard about the GET or POST parameters. GET parameters have been used for years as a standard way to bind variables in the URL, and POST parameters are used to bind variables in the body of the HTTP request. We will learn about POST parameters in the next chapter during form submission.

Okay, now let's see how to read GET request parameters using the Spring MVC style. To demonstrate the use of the request parameter, let's add a product details page to our application.