13.4. Portlet Views
Prev | 13. Portlet Integration | Next

## 13.4. Portlet Views

In order to facilitate view rendering, a `ViewRendererServlet` must be added to the `web.xml` file. This servlet is not invoked directly, but it used by Web Flow to render views in a portlet environment.

    <servlet>
        <servlet-name>ViewRendererServlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.ViewRendererServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>ViewRendererServlet</servlet-name>
        <url-pattern>/WEB-INF/servlet/view</url-pattern>
    </servlet-mapping>

Prev | Up | Next
13.3. Configuring Spring | Home | 13.5. Portlet Modes and Window States