mosho ha scritto:
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
tags.

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" />
 </definition>

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

Just to clear things, do you need to replace the "pageTitle" or your "breadcrumb" attribute? Anyway if you want to replace the "pageTitle" attribute you need to do this way:

<tiles:insert definition="baseLayout">

 <tiles:put name="pageTitle" beanName="pageTitle" beanScope="tile" />

</tiles:insert>

HTH
Antonio


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to