Is it possible to add attributes from the session to the put attribute
of a tiles definition. I would like to do something like...

<definition name="SalesRates_application.layout"
extends="general.logon.layout">
        <put-attribute name="title_page_name" value="Sales
${sessonScope.SALES_RATES_SERVICE_TYPE} Rates" />
</definition>

What do I need to setup to allow the expression language to be able to
parse the session attribute. Can Struts 2 expressions such as
%{#session.SALES_RATES_SERVICE_TYPE} also be used?

The expression language support page on the tiles web site has the
example

<definition name="test.composite.el.definition"
templateExpression="${layout}"
preparer="org.apache.tiles.test.preparer.RequestSettingViewPreparer">
      <put-attribute name="title"  value="This is a configured composite
definition."/>
      <put-attribute name="header" value="/header.jsp"/>
      <put-attribute name="body"   expression="${requestScope.body}"/>
</definition>

Where does the templateExpression= and expression= attributes come from?
I don't see them defined in the tiles reference sheet.

David Smith




Reply via email to