You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2016/03/22 20:18:00 UTC

svn commit: r983442 - /websites/production/struts/content/docs/tiles-plugin.html

Author: lukaszlenart
Date: Tue Mar 22 19:18:00 2016
New Revision: 983442

Log:
Updates production

Modified:
    websites/production/struts/content/docs/tiles-plugin.html

Modified: websites/production/struts/content/docs/tiles-plugin.html
==============================================================================
--- websites/production/struts/content/docs/tiles-plugin.html (original)
+++ websites/production/struts/content/docs/tiles-plugin.html Tue Mar 22 19:18:00 2016
@@ -143,7 +143,6 @@ under the License.
   <groupId>org.apache.struts</groupId>
   <artifactId>struts2-tiles-plugin</artifactId>
   <version>${version.tiles}</version>
-  <scope>compile</scope>
 </dependency>
 </pre>
 </div></div></li><li><p>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.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
@@ -187,7 +186,7 @@ public class FooAction extends ActionSup
     &lt;/definition&gt;
 
 &lt;/tiles-definitions&gt;</pre>
-</div></div></li></ol><h2 id="TilesPlugin-Example">Example</h2><p>This example shows a Tiles layout page using Struts tags:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div></li></ol><div class="confluence-information-macro confluence-information-macro-information"><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>As from Struts 2.3.28, the plugin automatically loads all Tiles definitions matching the following pattern <code>tiles*.xml</code> - you don't have to specify them via <code>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</code> in <code>web.xml</code></p></div></div><h2 id="TilesPlugin-Example">Example</h2><p>This example shows a Tiles layout page using Struts tags:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;%@ taglib uri=&quot;http://tiles.apache.org/tags-tiles&quot; prefix=&quot;tiles&quot; %&gt;
 &lt;%@ taglib prefix=&quot;s&quot; uri=&quot;/struts-tags&quot; %&gt;