This project has retired. For details please refer to its Attic page.
Apache Tiles - Framework - Getting started

Requirements

To use Tiles in your application you need:

  • a Java Runtime Environment following the Java SE 5.0 specifications;
  • a servlet container that supports Servlet 2.4 (or above) and JSP 2.0 (or above).

Installation

To install Tiles in your web application:

  • download a distribution of Tiles;
  • if you downloaded the binary distribution, unpack it;
  • copy the tiles-core-VERSION.jar and tiles-api-VERSION.jar files in the WEB-INF/lib directory of your web application. It is not reccomended to put them in a location where they are shared across the container;
  • copy the Tiles dependencies JARs:

    These dependencies are present in the lib directory of the binary distribution;

  • if you need JSP support, copy the tiles-jsp-VERSION.jar in the WEB-INF/lib directory of your web application.

Usage

If you are using Tiles for the first time, read the Tutorial.

If you are migrating from Struts-Tiles, see the Migration guide.

Examples

To see Tiles in action, there are two examples:

  • The Tiles test web application, included in examples directory of the binary distribution (download it).
  • The Tiles showcase, that shows Tiles features and integration with other technologies and frameworks (currently only Struts 1).

    Currently it is still under development, and you can access it through its subversion repository:

    http://svn.apache.org/repos/asf/tiles/examples/trunk/tiles-showcase/