struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cedric Dumoulin <ced...@apache.org>
Subject Re: How to access current Tiles definition name?
Date Thu, 29 Aug 2002 11:16:03 GMT

  Hi,

  There is no way to retrieve the current definition name.
  The actual solution is to add an attribute identifying the definition.

  Hope this help,

   Cedric
 
Christian Oldiges wrote:

> Hi!
>
> Is it possible to retrieve the tiles definition name within a JSP that 
> is part of the currently processed definition?
>
> Example:
>
> <definition name="rootLayout" path="/layouts/rootLayout.jsp">
>     <put name="menu"       value="/tiles/menu.jsp" />
>     <put name="content"    value="/tiles/content/empty.jsp" />
>     <put name="rightBar"    value="/tiles/newsbar.jsp" />
> </definition>
>
> <definition name="site.page1" extends="rootLayout" >
>     <put name="title"    value="blabla" />
>     <put name="content"    value="/tiles/content/page1.jsp" />
> </definition>
>
> <definition name="site.page2" extends="rootLayout" >
>     <put name="title"    value="blabla" />
>     <put name="content"    value="/tiles/content/page2.jsp" />
> </definition>
>
> Now within "/tiles/menu.jsp" I want to find out which tiles definition 
> is active. "site.page1" or "site.page2"
>
> TIA,
>     Christian
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:struts-user-help@jakarta.apache.org>
>
>



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


Mime
View raw message