Skip to Content
0
Feb 24, 2009 at 04:54 PM

Capture the Node clicked / selected in Toplevel navigation

32 Views

HI

How to capture the node that is clicked by user in the generated toplevel navigation from the taglib.

I need to pass the TAB/MENU name selected by user to another JSP using session or request object.


<nav:iterateInitialNavNodes>
       <li class='Level1'><nav:navNodeAnchor navigationMethod="byURL" />
        <%-- check to see if there are level 2 nodes, if so start another <ul> and assign a CSS class --%>
        <nav:ifNavNodeHasChildren>
            <ul>
            <%-- again go through all the nodes in level 2 --%>
            <nav:iterateNavNodeChildren>
       <%-- id l1 is written for second level hover and to set its css properties --%>
                <li class='Level2' id='l1'><nav:navNodeAnchor navigationMethod="byURL" /></li>

            </nav:iterateNavNodeChildren>
            </ul>
        </nav:ifNavNodeHasChildren>
        </li>
    </nav:iterateInitialNavNodes>

Suggestions appreciated.

Thanks in advance.