When Use Tiles with Spring MVC, How to Tell Spring MVC Which Tiles Configuration Files to Use?


/ Published in: Java
Save to your folder(s)

Spring plus Tiles


Copy this code and paste it in your HTML
  1. <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
  2. <property name="useMutableTilesContainer" value="true"/>
  3. <property name="definitions">
  4. <list>
  5. <value>/WEB-INF/defs/tiles-defs.xml</value>
  6. </list>
  7. </property>
  8. </bean>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.