Given a tile definition like:

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

and a message that I would normally retrieve like:

<bean:message key="page.title"/>

How can I pass the message to the tile?

I realized that in this particular case, it made more sense to invoke the tile 
using:
<tiles:insert definition="layout" flush="true"> 
 <tiles:put name="title" value="page.title"/>
 <tiles:put name="body" value="/body.jsp" />
</tiles:insert>

and have layout.jsp get the message from the key, but I'm sure that's not 
always the case. 

It would seem that the beanName and beanProperty attributes of the put tag 
should come into play, here, but I haven't found a single example of using 
them.
-- 
derek

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

Reply via email to