Project Documentation

Load XML definition files using wildcards

XML definition files can be loaded using wildcard, but this behaviour is not the default, due to compatibility reasons to Tiles 2.0.x.

Prerequisites

To use wildcards in XML definition files, you need to put the following libraries in your classpath:

spring-core.jar

spring-web.jar

spring-context.jar

spring-beans.jar

aopalliance.jar

If you are using Maven, simply depend on spring-web package.

Configuration

To be able to specify Tiles XML definition files using wildcards, there is the need to override the Tiles application context creation. For example, if you are using parameter-based initialization, provide a new value for the org.apache.tiles.context.AbstractTilesApplicationContextFactory init parameter. For example: