Enough of introduction; let's dive into Apache Tiles by defining a common layout for our web application and let the pages extend the layout:
pom.xml; you will find
pom.xmlunder the project root directory.
pom.xml; select the Dependencies tab and click on the Add button of the Dependencies section.
org.apache.tiles, Artifact Id as
tiles-extras, and Version as
3.0.3. Then, select Scope as compile, click on the OK button, and save
org.slf4j, Artifact Id as
slf4j-api, and Version as
1.7.5. Then, select Scope as compile, click on ...