Tiles builds on the "include" feature provided by the JavaServer Pages specification to provide a full-featured, robust framework for assembling presentation pages from component parts. Each part ("Tile") can be reused as often as needed throughout your application. This reduces the amount of markup that needs to be maintained and makes it easier to change the look and feel of a website.
The Tiles framework is bundled with Struts but not enabled by default. To enable Tiles you need to:
/WEB-INF/struts-tiles.tld /WEB-INF/struts-tiles.tld
Servlet 2.3: You can omit the declaration in WEB-INF/web.xml and replace above line with the full URI:
commons-logging.properties org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog simplelog.properties # Logging detail level, # Must be one of ("trace", "debug", "info", "warn", "error", or "fatal"). org.apache.commons.logging.simplelog.defaultlog=trace
Reuse Tiles and Simplify UI by James Holmes. Howto article in Oracle Magazine.
Developing applications with Tiles by Cedric Dumoulin and Ted Husted. Sample chapter from Struts in Action; available as a free download (PDF).
Using Tiles Sample beta chapter from Programming Jakarta Struts; available as a free download (PDF).