On Aug 19, 2004, at 10:11 AM, Catharine Morgan wrote:
I'm guessing you mean 2.2.
Its an older version, and I'm sure its 1.2. Although I am new to struts-menu the code I am working with was written by someone else.
You might try upgrading, though it probably won't fix your problem - it might prevent others from happening. ;-)
The tabbed menus matched the selected menu based a cookie and falls back to resolving it by matching the URL. Using "page" instead of "location" should work fine. You don't need both since they do the same thing. Is it possible your URL has a jsessionid tacked onto it when you first access the page?
So does the URL I use to access the JSP have to match exactly the URL specified in the page attribute? This might explain why some of the tabs work and some don't. The problem with an exact match is that many of the URLs have query strings which may be different depending on where the JSP is accessed from.
You can change how things are resolved if you're familiar with JavaScript. Most of the logic is contained in tabbedMenu.js. You could also implement your own displayer and determined the selected menu while rendering it.
FYI.. here's the original menu I used - which actually use a body id tag to determine active tabs:
http://www.kalsey.com/tools/csstabs/
Here's what I did to change it for struts-menu:
http://raibledesigns.com/page/rd/20030603#struts_menu_has_tabbed_menu
HTH,
Matt
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/struts-menu-user
