You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Antonio Petrelli <ap...@apache.org> on 2006/09/28 09:04:45 UTC

[tiles] Re: can i access tile definition name directly in browser

Vinod Kumar ha scritto:
> Hi,
>   Can I access a tile definition name like "loginPage"
> as below directly in the browser.

No, at least not directly, but you can define an attribute in the layout 
page, e.g.:
<tiles:getAsString name="definitionName">
and doing:

<definition name="loginPage" extends="baseLayout">
  <put name="definitionName" value="loginPage" />
  <!-- The rest remains the same -->
</definition>

HTH
Antonio



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org