Friday 13 December 2013

Integrating Spring 3 with Apache tiles 3 framework..


Here I would like to show how to integrate Spring3 with Apache Tiles3 framework.

Project Structure:



























Dependencies (pom.xml):

Below are the dependencies required for this project. we can add more based on the requirement.









































View Resolver Configuration:



















Controller Class:
















Tile definitions:

We have to define a tile definition to make use of tiles. We can define a specific tile definition or we can extend the existing definition. Here are the tile definitions required for this project.




















Browser View:

This is the first page for tile definition name ‘mytile’. On click of the link ‘Another Tile Page’ the second page will display.



































Download the source code