I'm guessing you mean 2.2. 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?

Matt

On Aug 19, 2004, at 7:27 AM, Catharine Morgan wrote:

BTW - I should have added that I am using version 1.2.

Catharine


From: "Catharine Morgan" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [struts-menu] Problem with tabbed menus
Date: Thu, 19 Aug 2004 11:38:00 +0000

I am a newcomer to struts-menu, and I am having some trouble getting tabbed menus to work properly.
Say I have the following tabs defined in my menu-config.xml file.


<Menu name="MyFirstTab" title="First Tab" page="firstTab.do"/>
<Menu name="MySecondTab" title="Second Tab" page="secondTab.do"/>

Both these tabs are included in my JSP.
The problem I was having was that when I display the JSP I could not get my initial tab to look as though it was selected.


I looked through the newsgroup archives and found that you could add a location attribute so I changed my xml to the following:

<Menu name="MyFirstTab" title="First Tab" page="firstTab.do" location="?first"/>
<Menu name="MySecondTab" title="Second Tab" page="secondTab.do" location="?second"/>


When accessing the JSP either "first" or "second" is put in the query string.
This works in that the tab appears to be selected, but the URLs are then messed up. The URL for both tabs became firstTab.do.
My second problem is that the location attribute forms the complete query string for the URL. So what do I do if my page attribute needs a query string i.e. instead of firstTab.do I have firstTab.do?qs=xyz. I can add the query string part to the location attribute but then when I access my URL putting "first" in the query string won't provide a match because there is also other stuff in the location attribute.


I am quite sure that I have got this all completely wrong, and would really appreciate it if someone could tell me how to get Tabbed Menus to display as selected properly.

Thanks,
Catharine

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/




-------------------------------------------------------
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

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/




-------------------------------------------------------
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



------------------------------------------------------- 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

Reply via email to