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
