You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vangelis Konstantinis <Va...@eurodyn.com> on 2003/04/09 15:15:50 UTC
Passing values by variable.
Hi to all,
In struts-tiles examples (struts-documentation.war)in a tile
definition i see the following configuration.
It insert hardcoded the menus which will be appeared in the main page.
It's possible these values to be passed by variable? (e.g a
customizable menu, which is different from user to user), and not
hardcoded.
<definition name="doc.menu.links" path="/layouts/menu.jsp" >
<put name="title" value="Documentation" />
<putList name="items" >
<item value="Home"
link="/index.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Live Examples (new)"
link="/examples/index.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<!--
<item> <value>Commented Examples</value>
<link>/examples/index.jsp</link>
<classtype>org.apache.struts.tiles.beans.SimpleMenuItem</classtype>
</item>
-->
<item value="Quick overview"
link="/doc/quickOverview.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Tutorial"
link="/doc/tutorial.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Tutorial Live Examples"
link="/tutorial/index.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Download"
link="/doc/download.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Installation"
link="/doc/installation.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="User Guide"
link="/doc/userGuide.jsp"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Javadoc"
link="/api/index.html"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
<item value="Struts Home"
icon="/images/struts-power.gif"
link="http://www.apache.org"
classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
</putList>
</definition>
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org