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>