You could use the VelocityDisplayer and the tabbed menu example for
that to have full control over the HTML that's generated.

http://demo.raibledesigns.com/struts-menu/velocity-tabs.jsp?Home

Matt

On 5/22/06, A. Lotfi <[EMAIL PROTECTED]> wrote:

Hi,
I am new to struts and struts-menu, please I have a question :

For example  in
http://localhost:8084/strutsmenu24/tabbedMenu.jsp

in this tabbedMenu.jsp file we have :

<div id="content" style="width: 60%">
    <h2>CSS Tabs with Submenus</h2>
    <p>
        Adapted from <a
href="http://www.kalsey.com/tools/csstabs/";>
        Adam Kalsey's demo</a>.  Changes include:
    </p>
    <ul>
        <li>Removed redundant CSS classes - now uses JavaScript, CSS and
            Cookies to detect which menu should be active.</li>
        <li>Added XHTML Strict DOCTYPE and adjusted CSS accordingly.</li>
        <li>Integrated into <a
href="http://sf.net/projects/struts-menu";>
            Struts-Menu</a> as a new displayer (TabbedMenuDisplayer).</li>
    </ul>
    <p><strong>How it works</strong><br /><br />
        JavaScript is used to set the active menu when the page first loads.
        It does this by comparing the current location with the href's
        in the menu's links.  Then it uses current.indexOf(eachLink) and
        matches the first one.  If more than one link matches the current
link,
        then the cookie from the last clicked menu is used.
        <br /><br />
        As always, send any comments via e-mail to the
        <a
href="mailto:[EMAIL PROTECTED]
Menu">
        struts-menu user mailing list</a>.
    </p>
    <p><strong>NOTE:</strong> If you do not
        have a location/page on your menu, the first item in the submenu is
used.
        This menu does not currently allow for dynamically showing the
submenu
        when you mouseover the tabs, but this could probably be added
easily.
     </p>
</div>

How to have the content of each submenu clicked to be in that
<div id="content ...>

</dev>

Thank you.


 ________________________________
Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with
Voice.




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
struts-menu-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to