Hi Kate,
i'm doing it like this, in action i'm forwarding to a simple jsp (not
Tiles) and inside a jsp i have:

-------- jsp start --------
< % @page contentType="text/html;charset=utf-8" language="java" % >
< % @ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" % >
< % @ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld" % >

< tiles:insertDefinition name="isiak.main" >
        < tiles:putAttribute name="body" >

here is the body of this page

        < / tiles:putAttribute >
< / tiles:insertDefinition >
-------- jsp end --------

i've added spaces around < and / and > - not sure if that would be
rendered corerectly.
So, same as You i have only layout definitions in tiles.xml. Hope that helps.

Best greetings,
Paweł Wielgus.


2009/5/27 kate_cl <virgurliv...@yahoo.com>:
>
> Hi all,I'm using tiles 2 with struts 2.Basically in tiles.xml,are these
> definitions..
>
> <definition name="tiles.default" template="/layouts/Layout.jsp">
>        <put-attribute name="header" value="/includes/header.jsp"/>
>        <put-attribute name="footer" value="/includes/footer.jsp"/>
>    </definition>
>
>    <definition name="tiles.home" extends="tiles.default">
>        <put-attribute name="body" value="/home.jsp"/>
>    </definition>
>
>    <definition name="tiles.user" extends="tiles.default">
>        <put-attribute name="body" value="/user/user.jsp"/>
>    </definition>
>
>    <definition name="tiles.admin" extends="tiles.default">
>        <put-attribute name="body" value="/admin/admin.jsp"/>
>    </definition>
>
> lets say,i have 20 jsp pages that use the same template(tiles.default). Is
> there any simpler way to do this than writing a definition for each of the
> them?
> --
> View this message in context: 
> http://www.nabble.com/Tiles-2-define-many-pages-using-same-template-tp23738366p23738366.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to