Home > Guides > Plugin Developers Guide > Tiles 3 Plugin |
Tiles is a templating framework designed to easily allow the creation of web application pages with a consistent look and feel. It can be used for both page decorating and componentization. This is the first release of the plugin!
The Tiles 3 plugin allows actions to return Tiles 3 pages.
The following steps must be taken in order to enable Tiles 3 support within your Struts2 application:
<dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-tiles3-plugin</artifactId> <version>${version.tiles}</version> <scope>compile</scope> </dependency>
<listener> <listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class> </listener>
<result-types> <result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/> </result-types>
<action name="sample" class="org.apache.struts2.tiles.example.SampleAction" > <result name="success" type="tiles">tilesWorks</result> </action>
TBD
This plugin does inherits settings from Tiles configuration.
This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib
directory. No other files need to be copied or created.