tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: Dynamic attribute value
Date Tue, 08 Apr 2008 17:40:06 GMT
2008/4/8, Stefan Schwarz <cmsi@gmx.net>:
>
>
>  Antonio Petrelli-3 wrote:
>  >
>  > What's this "tilesSiteName" and how do you use it?
>  >
>  > Antonio
>  >
>
>
> I want to use it in "/fragments/tilespage.jsp" like
>
>  <tiles:getAsString name="tilesSiteName" />

Strange, if you have in layout.jsp:

<t:insertAttribute name="tiles.page">
 <t:putAttribute name="tilesSiteName">
   <t:getAsString name="site.name" />
 </t:putAttribute>
</t:insertAttribute>

and in "tilespage.jsp":

<tiles:getAsString name="tilesSiteName" />

it should work.

Does it raise an exception? If yes please post it here.

Antonio

Mime
View raw message