May 2015
Intermediate to advanced
234 pages
4h 18m
English
With a page template, avoid repeating the common elements of the pages (HTML head, header, footer, navigation, and so on) in every JSP.
Here are the steps to use Tiles:
pom.xml:<dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-servlet</artifactId> <version>3.0.5</version> </dependency> <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-jsp</artifactId> <version>3.0.5</version> </dependency>
// declare Tiles configuration file @Bean public TilesConfigurer tilesConfigurer() { TilesConfigurer tilesConfigurer = ...Read now
Unlock full access