You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mick Knutson <mi...@safeway.com> on 2005/08/09 20:34:52 UTC

Nested navigation items not working

I also need to see if anyone has any other nested navigation element
examples as I can't get mine to show up.
I get a resource not available error on the jsp:


    <!-- =======================================================  -->
    <!-- Menus definitions             -->
    <!-- =======================================================  -->

    <!-- Menu bar definition
        This definition describe a "bar" of menu stacked verticaly.
     Each menu is describe elsewhere.
     Add new entry in the list to add new menu.
    -->
    <definition name=".default.menu.layout"
path="/WEB-INF/default/navigationLayout.jsp" >
        <putList name="list" >
            <add value=".menu.consumer.search" />
            <putList name="list" >
                <add value=".menu.consumer.detail" />
            </putList>
        </putList>
    </definition>

    <!-- =======================================================  -->
    <!-- Menus Items                   -->
    <!-- =======================================================  -->

    <definition name=".menu.default" path="/WEB-INF/default/navigation.jsp"
>
        <put name="section_url" value="/index.jsp" />
    </definition>

    <definition name=".menu.admin" path="/WEB-INF/default/navigation.jsp" >

        <put name="title" value="Admininstration Menu" />
        <put name="section_url" value="/index.jsp" />
    </definition>

    <!-- These are the sub items under the navigation section -->
    <definition name=".menu.consumer.search" extends=".menu.admin">
        <putList name="items" >
            <item   value="label.menu.consumerQuery"
             link="/toConsumerQuery.do"
           icon="/default/images/folder_open.gif"
           classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
            <item   value="label.menu.consumerSearch"
             link="/toConsumerSearch.do"
           icon="/default/images/folder_open.gif"
           classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
        </putList>
    </definition>

    <!-- These are the sub items under the navigation section -->
    <definition name=".menu.consumer.detail" extends=".menu.default">
        <putList name="items" >
            <!-- <add value="/examples/tiles/portal/login.jsp" /> -->
            <item   value="label.menu.consumer.detail"
             link="/consumer.do"
           icon="/default/images/folder_open.gif"
           classtype="org.apache.struts.tiles.beans.SimpleMenuItem" />
        </putList>
    </definition>







Mick Knutson wrote:

> I have started to use the menu.jsp example to create a dynamic menu for
> my application.
> But there are certain links that I only want to show if a given
> actionForm is present.
> I also have a few of the links that are created using the std taglibs
> when a given actionForm is present.
> I have it working with a static jsp, but want to use a more dynamic
> tiles creation, but can't figure out how to create dynamic URL's with
> the menu.jsp example.
> Any help?
>
> --
>
> Thanks
> Mick Knutson
> (925) 951-4126
> HP Consulting Services
> Safeway (Blackhawk Fastword Project)
> J2EE Architect
> ---

--

Thanks
Mick Knutson
(925) 951-4126
HP Consulting Services
Safeway (Blackhawk Fastword Project)
J2EE Architect
---



"MMS <safeway.com>" made the following annotations.
------------------------------------------------------------------------------
Warning: 
All e-mail sent to this address will be received by the Safeway corporate e-mail system, and is subject to archival and review by someone other than the recipient.  This e-mail may contain information proprietary to Safeway and is intended only for the use of the intended recipient(s).  If the reader of this message is not the intended recipient(s), you are notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited.  If you have received this message in error, please notify the sender immediately. 
  
==============================================================================


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