Create Things and Build Stuff

Apache Tiles is a popular templating framework used for Java web application. Tiles gain the popularity because Struts 1.x use Tiles as its default template framewrok. SpringMvc that is MVC framework just like Strust, also supports integration with Tiles as template framework.

In this tutorial we will go together to integrate SpringMvc 3 and Tiles 2.2.2. Remember, we use Tiles 2.2.2 although version 3 is ready.
The application we will make is like this:

Every menu in the left when it is clicked will change only the main part of the page (the center part). The old fashioned way to achieve this is using a number of pages that have same left side menu but different layout in the main part. But what happen if we have 100 pages and the footer has changed, we have to change all of the pages. What a waste of time.

I assume you have already know how to use SpingMVC 3

1. Configure The Library

The very first step is to install the needed libraries to the project.