Hallo, All!

I'm trying to use struts with tiles framework. The idea of tiles definitions seems to be very good. But I can't find how is it possible to pass the attributes to the definitions, which I use as attribute.

Here is an example with the explanation of my problem:

Suppose, I need to build the portal with the classical layout (header, left side menu, content and footer).

I've made the following definitions for this layout

------------------------------------------------------------
<definition name="layout" path="/layout.jsp">
<put name="header" value="/header.jsp"/>
<put name="menu" value="menu"/>
<put name="body" value=""/>
<put name="footer" value="/footer.jsp"/>
</definition>
<definition name="menu" path="/menu.jsp">
<put name="activeMenu" value=""/>
</definition>
------------------------------------------------------------

The activeMenu attribute for menu definition says to menu which item
should be marked as active for current page.

Suppose, I have the following definition for my page
------------------------------------------------------------
<definition name="mypage" extends="layout">
<put name="menu">
<insert beanName="menu">
<put name="activeMenu" value="mypage"/>
</insert>
</put>
<put name="body" value="/myBody.jsp"/>
</definition>
------------------------------------------------------------

This definition is broken (attribute "menu"), but I need to pass the
attribute for menu definition as a parameter. How can I do this?

I whant to pass the active menu name as an attribute for menu in each
page (they all look like mypage).

Or is it impossible in tiles definitions to pass attributes this way?
Probably exists a workaroud for this cases?

Thanks,


--
_____________________________________________________________________
| |
| knipp | Knipp Medien und Kommunikation GmbH
------- Technologiepark
Martin-Schmeisser-Weg 9
D-44227 Dortmund
Dipl.-Mathematiker Igor Lyubimov Fon: +49-231-9703-0
[EMAIL PROTECTED] Fax: +49-231-9703-200
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

C e B I T 2003 Besuchen Sie uns
H a n n o v e r auf unserem Stand:
12.3.-19.3.2003 Halle 6, C 52/560


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

Reply via email to