You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Amit Rana (JIRA)" <ji...@apache.org> on 2007/11/08 10:06:34 UTC

[jira] Created: (TILES-228) TilesDecorationFilter doesnt work with struts2

TilesDecorationFilter doesnt work with struts2
----------------------------------------------

                 Key: TILES-228
                 URL: https://issues.apache.org/struts/browse/TILES-228
             Project: Tiles
          Issue Type: Bug
          Components: tiles-core
    Affects Versions: 2.0.5
         Environment: tiles 2.0.5
struts 2.0.9
            Reporter: Amit Rana


mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e

TileDecorationFitler does not  decorate struts action output. 

I tried with following sample

 If I access jsp/home.jsp directly it comes with the layout but accessing home.action
only prints layout and result of action is not seen anywhere. There
are no errors.

If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.

web.xml
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
       id="WebApp_ID" version="2.5">
       <display-name>MyApp</display-name>

       <listener>
               <listener-class>
                       org.apache.struts2.tiles.StrutsTilesListener
               </listener-class>
       </listener>
       <filter>
               <filter-name>struts2</filter-name>
               <filter-class>
                       org.apache.struts2.dispatcher.FilterDispatcher
               </filter-class>
       </filter>
       <filter>
               <filter-name>tilesdecoration</filter-name>
               <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
               <init-param>
                       <param-name>definition</param-name>
                       <param-value>blank</param-value>
               </init-param>
               <init-param>
                       <param-name>attribute-name</param-name>
                       <param-value>body</param-value>
               </init-param>
       </filter>
       <filter-mapping>
               <filter-name>struts2</filter-name>
               <url-pattern>/*</url-pattern>
       </filter-mapping>
       <filter-mapping>
               <filter-name>tilesdecoration</filter-name>
               <url-pattern>/*</url-pattern>
       </filter-mapping>
       <welcome-file-list>
               <welcome-file>home.action</welcome-file>
       </welcome-file-list>
</web-app>

struts.xml
<struts>
       <package name="default" extends="struts-default">
               <result-types>
                       <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
name="tiles">
                       </result-type>
               </result-types>
               <action name="home" class="com.tj.actions.HomeAction">
                       <result>jsp/home.jsp</result>
               </action>
       </package>
</struts>

tiles.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
      "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
      "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">

<tiles-definitions>
       <definition name="blank" template="/jsp/template/blankLayout.jsp">
               <put-attribute name="title" value="my application" />
       </definition>
</tiles-definitions>

blankLayout.jsp
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<html>
   <head>
       <title><tiles:getAsString name="title"/></title>
   </head>
   <body>
       <tiles:insertAttribute name="body" />
   </body>
</html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42811 ] 

Antonio Petrelli commented on TILES-228:
----------------------------------------

Amit, can you attach a sample application here, so the testing is easier?

Thanks

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42840 ] 

Antonio Petrelli commented on TILES-228:
----------------------------------------

I don't know if it could help both of you (Amir and Jelmer). Try to configure Struts 2 filter this way:

<filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
</filter-mapping> 


> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>         Attachments: tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli closed TILES-228.
----------------------------------


Tiles 2.0.6 released.

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>            Assignee: Antonio Petrelli
>             Fix For: 2.0.6
>
>         Attachments: tiles228.zip, tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42848 ] 

Antonio Petrelli commented on TILES-228:
----------------------------------------

Thanks Jelmer!
I did not notice that IOException with two parameters has been introduced only in Java 6. In fact it was the fix for TILES-230 (that I reopened) that broke the build:
https://issues.apache.org/struts/browse/TILES-230

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>            Assignee: Antonio Petrelli
>             Fix For: 2.0.6
>
>         Attachments: tiles228.zip, tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli resolved TILES-228.
------------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.0.6

This issue duplicates TILES-232: I tested the modified webapp with a freshly built Tiles 2.0.6-SNAPSHOT and it worked.

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>            Assignee: Antonio Petrelli
>             Fix For: 2.0.6
>
>         Attachments: tiles228.zip, tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli updated TILES-228:
-----------------------------------

    Attachment: tiles228.zip

Added a new webapp attachment.
I corrected:
- web.xml: the Struts 2 dispatcher filter must manage INCLUDE requests too;
- struts.xml: the "menu.jsp" page must stay inside a Struts 2 context, so I configured a new action;
- tiles.xml: I replaced the reference to "menu.jsp" with a reference to the action above.
I also updated the list of depending JARs.

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>            Assignee: Antonio Petrelli
>         Attachments: tiles228.zip, tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Jelmer Kuperus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42844 ] 

Jelmer Kuperus commented on TILES-228:
--------------------------------------

Thanks all

Changing the filter-mapping configuration and using  the 2.0.6 snapshot from http://svn.apache.org/repos/asf/tiles/framework/branches/TILES_2_0_X/ fixed it for me.

I did need to modify the 2.0.6 code a bit to make sure it compiled on java 5. IOException on java 5 only accepts a string as argument.
Can I safely asume that final 2.0.6 release will be supported on java 5 ?

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>            Assignee: Antonio Petrelli
>             Fix For: 2.0.6
>
>         Attachments: tiles228.zip, tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Amit Rana (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amit Rana updated TILES-228:
----------------------------

    Attachment: tiles228.zip

I have attached a zip file with sample app....

- I have removed the jar files from lib folder to reduce size. There is a file inside lib folder which lists the jars I had there

visit http://server/tiles228/index.jsp you will see header/footer/menu comes

go to home.action, there will be no decoration.

Let me know if you need more information.

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>         Attachments: tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Jelmer Kuperus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42839 ] 

Jelmer Kuperus commented on TILES-228:
--------------------------------------

I ran into the same problem. The cause of the problem is that tiles uses

pageContext.include("/my.action", false);

To include the content

According to the spec the behaviour if the include method is

1) check for matching servlet mappings
2) check for matching file resources

However struts 2 does not use a dispatcher servlet instead it implemented the dispatcher as a servlet filter so no servlet mapping matches and tiles goes directly to the filesystem. Obviously my.action is not a physical file so the request will fail

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>         Attachments: tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (TILES-228) TilesDecorationFilter doesnt work with struts2

Posted by "Antonio Petrelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/TILES-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Petrelli reassigned TILES-228:
--------------------------------------

    Assignee: Antonio Petrelli

> TilesDecorationFilter doesnt work with struts2
> ----------------------------------------------
>
>                 Key: TILES-228
>                 URL: https://issues.apache.org/struts/browse/TILES-228
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-core
>    Affects Versions: 2.0.5
>         Environment: tiles 2.0.5
> struts 2.0.9
>            Reporter: Amit Rana
>            Assignee: Antonio Petrelli
>         Attachments: tiles228.zip
>
>
> mailing list reference: http://mail-archives.apache.org/mod_mbox/tiles-users/200711.mbox/%3c777ab80a0711070040l2c2e90a8k91dc221b8aa78f@mail.gmail.com%3e
> TileDecorationFitler does not  decorate struts action output. 
> I tried with following sample
>  If I access jsp/home.jsp directly it comes with the layout but accessing home.action
> only prints layout and result of action is not seen anywhere. There
> are no errors.
> If struts filter is defined first I only see struts output and no layout. If I change the order i.e. tiles filter before struts then I only see layout and no output from the action.
> web.xml
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>        id="WebApp_ID" version="2.5">
>        <display-name>MyApp</display-name>
>        <listener>
>                <listener-class>
>                        org.apache.struts2.tiles.StrutsTilesListener
>                </listener-class>
>        </listener>
>        <filter>
>                <filter-name>struts2</filter-name>
>                <filter-class>
>                        org.apache.struts2.dispatcher.FilterDispatcher
>                </filter-class>
>        </filter>
>        <filter>
>                <filter-name>tilesdecoration</filter-name>
>                <filter-class>org.apache.tiles.web.util.TilesDecorationFilter</filter-class>
>                <init-param>
>                        <param-name>definition</param-name>
>                        <param-value>blank</param-value>
>                </init-param>
>                <init-param>
>                        <param-name>attribute-name</param-name>
>                        <param-value>body</param-value>
>                </init-param>
>        </filter>
>        <filter-mapping>
>                <filter-name>struts2</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <filter-mapping>
>                <filter-name>tilesdecoration</filter-name>
>                <url-pattern>/*</url-pattern>
>        </filter-mapping>
>        <welcome-file-list>
>                <welcome-file>home.action</welcome-file>
>        </welcome-file-list>
> </web-app>
> struts.xml
> <struts>
>        <package name="default" extends="struts-default">
>                <result-types>
>                        <result-type                            class="org.apache.struts2.views.tiles.TilesResult"
> name="tiles">
>                        </result-type>
>                </result-types>
>                <action name="home" class="com.tj.actions.HomeAction">
>                        <result>jsp/home.jsp</result>
>                </action>
>        </package>
> </struts>
> tiles.xml
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE tiles-definitions PUBLIC
>       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
> <tiles-definitions>
>        <definition name="blank" template="/jsp/template/blankLayout.jsp">
>                <put-attribute name="title" value="my application" />
>        </definition>
> </tiles-definitions>
> blankLayout.jsp
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <html>
>    <head>
>        <title><tiles:getAsString name="title"/></title>
>    </head>
>    <body>
>        <tiles:insertAttribute name="body" />
>    </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.