Creating a View

Let's create a View using the model attribute, name, which was set in the model in the controller. Create a simple JSP in the /WEB-INF/views/welcome-model-view.jsp path:

Welcome ${name}! This is coming from a model-view - a JSP

Here is a screenshot of how this would appear onscreen when the URL is hit:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset