- Mastering Spring 5.0
- Ranga Rao Karanam
- 56字
- 2021-07-02 22:12:12
Creating a View
Let's create a view using the model attribute name that 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 look on the screen when the URL is hit: