Wait a moment, I think that your question may be split in two:

2008/4/9, Stefan Schwarz <[EMAIL PROTECTED]>:
>
>
>
> Antonio Petrelli-3 wrote:
> >
> > 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
> >
> >
>
>
> This part works but the line in layout.jsp
>
>
> <t:getAsString name="site.name" />
>
>
> does not. In the putAttribute context there is no "site.name" available
> from
> the definition context.



You told in a previous e-mail that using:
<t:getAsString name="site.name" />
displays the name in "layout.jsp". So, if I understand it correctly, this
code "works". What does not work is the inclusion via the <t:putAttribute>
tag.


And that's the problem: How do get an attribute from the definition context
> to the tiles context?



I cannot understand this question: do you mean that you want to get an
attribute from the "attribute context" to a generic scope, like "page",
"request", etc.?
In this case see the <tiles:importAttribute> tag:
http://tiles.apache.org/2.0/framework/tiles-jsp/tlddoc/tiles/importAttribute.html

Antonio

Reply via email to