This might help:
http://raibledesigns.com/rd/entry/dependency_injection_with_sitemesh
If not, it should be as easy as using something like this in your JSP:
<c:set var="menu" scope="request">
contents of menu
</c:set>
Then retrieve it in your decorator:
${requestScope.menu}
HTH,
Matt
On Fri, Dec 19, 2008 at 1:02 PM, Raghu <[email protected]> wrote:
> Hi, I am new to appfuse and sitemash but I have use tiles earlier with
> struts in different project.
>
> My site layout is Top Navigation Bar and local panel with 2 columns in
> body..or say top navigation and 3 column in body...
>
> How should I compose my decorate page for this layout?
>
> For tiles, I used to do below kind of layout, and supply definition in
> tiles-def.xml but not sure what to do in decorator for leftColumn and
> rightColumn in below case..Left column is control panel and have local
> navigation... How can I show different left and rightColumn along with
> centerColumn?
>
> <table width="1000" border="0" align="center" cellpadding="0"
> cellspacing="0" bgcolor="#FFFFFF">
>
> <tr>
> <td height="96" align="center">
> <div id="header">
> <!-- Header Start Here -->
> <tiles:insertAttribute name="header"/>
> <!-- Header End Here -->
> </div>
> </td>
> </tr>
>
> <tr>
> <td height="28" align="center" valign="top">
> <div id="menu">
> <!-- Menu Start Here -->
> <tiles:insertAttribute name="menu"/>
> <!-- Menu End Here -->
> </div>
> </td>
> </tr>
>
> <tr>
> <td height="132" align="center">
>
> <table width="1000" border="0" cellspacing="2" cellpadding="2">
> <tr>
> <td width="160" height="192" align="left" valign="top">
>
> <div id="leftBody">
> <!-- LeftPanel Start here -->
> <tiles:insertAttribute name="leftColumn"/>
> <!-- Left Panel End -->
> </div>
> </td>
> <td width="680" align="center" valign="top">
> <div id="centerBody">
> <!-- Center Panel Start Here -->
> <tiles:insertAttribute name="centerColumn"/>
> <!-- Center Panel End Here -->
> </div>
> </td>
> <td width="160" height="192" align="center" valign="top">
>
> <div id="rightBody">
> <!-- Right Panel will be here -->
> <tiles:insertAttribute name="rightColumn"/>
> </div>
>
> </td>
> </tr>
> </table>
>
> </td>
> </tr>
>
> <tr>
> <td height="49">
>
> <div id="footer">
> <!-- Footer Start Here -->
> <tiles:insertAttribute name="footer"/>
> <!-- Footer End Here -->
> </div>
>
> </td>
> </tr>
> </table>
>
>
>