You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rajiv ahuja <ra...@hotmail.com> on 2003/02/04 21:44:44 UTC

nested tiles

Hi

I am trying to use nested tiles. The first level is using classic layout and 
in the second level I am trying to define breadcrum and a body footer 
(seperate from main page footer). I understand that I've to use itermediate 
defination but couldn't quiet make it work. I still see just the body, body 
footer and breadcrumb but not the main header, footer and menu.  I am 
calling .success.showModules from my struts-config forwards.  Following is 
my tiles-defs.xml


<definition name="basedef" path="/tiles/layouts/baselayout.jsp">
        <put name="header" value="/tiles/header.jsp" />
        <put name="footer" value="/tiles/footer.jsp" />
        <put name="menu" value="/tiles/menu.jsp" />
        <put name="mainbody" value="" />
</definition>


<definition name="body.page" extends="basedef">
    <put name="mainbody" value="body.page.layout" />
</definition>

<definition name="body.page.layout" path="/tiles/layouts/bodylayout.jsp">
    <put name="breadcrumb" value="/tiles/breadcrumb.jsp" />
    <put name="bodyfooter" value="/tiles/bodyfooter.jsp" />
</definition>


<definition name=".success.showModules" extends="body.page.layout">
   <put name="title" value="Module List available" />
   <put name="body" value="/regwebwww/bodyShowRegModules.jsp" />
</definition>

<definition name=".success.showFields" extends="body.page.layout">
    <put name="title" value="Field list available" />
    <put name="body" value="/regwebwww/bodyShowFields.jsp" />
</definition>



Thanks
Rajiv

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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