/ Published in: Java
The way to tell Spring MVC to resolve logic view names to Tiles "definition" name is, in a DispatcherServlet configuration file, define a bean of type UrlBasedViewResolver with viewClass org.springframework.web.servlet.view.tiles2.TilesView
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"> <property name="contentType" value="text/html;charset=utf-8"/> <property name="order" value="10"/> <property name="requestContextAttribute" value="requestContext"/> <property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView"/> </bean>