Book Image

SPRING COOKBOOK

Book Image

SPRING COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Spring Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 3. Using Controllers and Views

In this chapter, we will cover the following recipes:

  • Associating a route to a controller method

  • Using a JSP view

  • Passing attributes from a controller to a JSP view

  • Using dynamic route parameters in a controller method

  • Using a common prefix for the routes of a controller

  • Using a page template with Tiles

  • Executing some code before and after controllers using interceptors

  • Building multilingual pages