Date: Tue, 19 Mar 2024 08:41:37 +0000 (UTC) Message-ID: <124667618.56009.1710837697076@cwiki-he-fi.apache.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_56008_1032920464.1710837697075" ------=_Part_56008_1032920464.1710837697075 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
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.
The following steps must be taken in order to enable tiles support withi= n your Struts2 Portlet application:
<dependenc= y> <groupId>org.apache.struts</groupId> <artifactId>struts2-portlet-tiles-plugin</artifactId> <version>${struts2.version}</version> </dependency>
<result-ty= pes> <result-type name=3D"tiles" class=3D"org.apache.struts2.views.tiles.Po= rtletTilesResult"/> </result-types>
<action na= me=3D"tilesDirect" class=3D"org.apache.struts2.portlet.dispatcher.DirectRen= derFromEventAction"> <result type=3D"tiles" name=3D"success">$\{location\}</result&= gt; </action>
<action na= me=3D"sample" class=3D"org.apache.struts2.tiles.example.SamplePortletAction= " > <result name=3D"success" type=3D"tiles">tilesWorks</result> </action>
This plugin can be installed by copying the plugin jar into your applica=
tion's /WEB-INF/lib
directory. No other files need to be copie=
d or created.