You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Erickson <de...@cmcflex.com> on 2003/08/19 19:53:00 UTC
Adding to a Tiles Definition at runtime?
Is there any possible way to add additional variables to a tiles definition
at runtime or to modify them? IE here is a definition:
<definition name=".menu.Software" path="/tiles/menu.jsp">
<putList name="menus">
<add value="Home"/>
<add value="SW1"/>
<add value="SW2"/>
<add value="SW3"/>
<add value="SW4"/>
<add value="SW5"/>
<add value="SW6"/>
</putList>
</definition>
And then my menu jsp iterates through that list of menus adding them. The
problem is I need a seperate tiles definition for every possible menu
configuration, and then if I want an action that forwards to a definition
that could show different menus.. etc etc it gets to be a pain. So would it
be possible to change whats in that list or add to that list in my action
before I forward to a tiles def? *Shrug just trying to get some ideas
together here*.
If that is not possible then my next question is in my baselayout.jsp I have
the
<tiles:insert attribute="menu"/> tag. In which scope does it search for a
variable named menu? and if i changed that to <tiles:insert
attribute="$menu"/> or something of that nature could it change at runtime
based on something in my request/or session scope?
Thanks in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org