struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mosho <>
Subject how to call other tiles from baselayout
Date Mon, 31 Jul 2006 19:18:51 GMT

I have a problem. I am using tiles for my layout.
I have a baselayout.jsp where I am inserting all my header, body and footer

I want to insert another attribute called breadcrumbs which have some insert
statements. for example, 
my tile definition is:

<definition name="baseLayout" path="/templates/baseLayout.jsp" >    
  <put name="pageTitle" value="Watershed Planning" type="string" />
  <put name="header" value="/templates/header.jsp" type="page" />
  <put name="breadcrumb" value="/templates/breadcrumbs.jsp" type="page" />
  <put name="footer"   value="/templates/footer.jsp" type="page" />
  <put name="pagecontent" value="/wspb_planbuilderintro.jsp" />

Can i do this in my base layout:
 <tiles:insert attribute="breadcrumbs" >
        <tiles:put name="pageTitle" beanName="pageTitle" beanScope="tile" />

Value of breadcrumbs is another jsp file:
      <li><tiles:getAsString name="pageTitle" /></li>


View this message in context:
Sent from the Struts - User forum at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message