comes from the struts documentation http://struts.apache.org/2.x/docs/tiles-plugin.html Include the struts-tiles-plugin as a dependency in your web application. If you are using maven2, the dependency configuration will be similar to: (example from pom.xml used to build the app)
<dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-tiles-plugin</artifactId> <version>${version.tiles}</version> <scope>compile</scope> </dependency> Register the tiles listener. This listener will typically either be the standard tiles listener (org.apache.tiles.listener.TilesListener) or the Struts2 replacement (org.apache.struts2.tiles.TilesListener). The latter provides tighter integration with Struts features such as freemarker integration.(example from web.xml) <listener> <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class> </listener> All package definitions which require tiles support must either extend the tiles-default package or must register the Tiles Result type definition. (from struts.xml) <result-types> <result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/> </result-types> Configure your actions to utilize a tiles definition:*(from struts.xml) <action name="sample" class="org.apache.struts2.tiles.example.SampleAction" > <result name="success" type="tiles">tilesWorks</result> </action> Example This example shows a Tiles layout page using Struts tags: <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %> <%@ taglib prefix="s" uri="/struts-tags" %> <%-- Show usage; Used in Header --%> <tiles:importAttribute name="title" scope="request"/> Martin Gainty ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Sat, 11 Oct 2008 13:42:14 +0200 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Delivery Status Notification > > My web.sml seems ok, but the tomcat log trace this: > > 10-ott-2008 16.29.19 org.apache.catalina.core.StandardContext > addApplicationListener > INFO: The listener "org.apache.struts2.tiles.StrutsTilesListener" is > already configured for this context. The duplicate definition has been > ignored. > > Someone can help me? > > Thanks > > Gianluca > > > > > > Redelivered cause this error: > > ---------- Forwarded message ---------- > From: <[EMAIL PROTECTED]> > Date: 2008/10/11 > Subject: Delivery Status Notification (Failure) > To: [EMAIL PROTECTED] > > > This is an automatically generated Delivery Status Notification. > > Delivery to the following recipients failed. > > [EMAIL PROTECTED] > > > > > Final-Recipient: rfc822;[EMAIL PROTECTED] > Action: failed > Status: 5.1.1 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/