Flow 3 - Controller redirecting to a View with Model

Typically, in order to generate the view, we would need to pass some data to it. In Spring MVC, data can be passed to the view using a model. In this flow, we would set up a model with a simple attribute and use the attribute in the view.

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.