A static view in a Spring Web MVC application is a view for which you don't explicitly create a controller class. We saw earlier that the Spring Web MVC application scaffolded by Roo configures static views using the
<view-controller> element of Spring's
mvc schema. The static views don't have an explicit controller, but behind the scenes Spring's built-in
ParameterizableViewController is used for rendering static views. Refer to the Auto-generating Spring MVC controllers and JSPX views from JPA entities recipe for details on pre-configured static views in the Roo generated web application.
In this recipe, we will look at the
view command of Roo, which creates a static view.