Hi Matt,

Thanks for your response.

After looking at the javascript function, I started looking cookies in
browser( Firefox). 
I found that - "menuSelected" cookie is getting created more than once( some
times 2 and some times 3 cookies) in some cases. Each one is holding
different number based upon the link clicked from menu.

Though, we are not setting path through "setCookie" function - path is
getting stored in cookie.

Pl let me know, why cookie is getting generated more than once.

I am planning to write a small function in javascript, which contains an
array of all the action classes that are not present in my menu config. If I
find that my "current" url is not in menu config and not in cookie, I would
like to set cookie. Any inputs in this direction.

I would like to implement w/ sitemesh, if the above options doesn't work.

Thanks,
byenare.





mraible wrote:
> 
> The Menu selection/highlighting logic is done using JavaScript. If you
> look at the associated JavaScript file for your menu, you should see
> how things work. Basically, a cookie is set so each time you click a
> menu, the cookie can be read on the next page to highlight the menu.
> If it doesn't find a cookie, it attempts to match on URL. If you click
> on a link w/in the page to go to the next, there's a good chance no
> cookie was set. You might look at the following example to learn now
> to use CSS to highlight the appropriate menu using SiteMesh.
> 
> http://www.dehora.net/journal/2007/08/tab_switching_with_sitemesh.html
> 
> Matt
> 
> On 8/7/07, byenare <[EMAIL PROTECTED]> wrote:
>>  Hi All, I am using TabbedMenu for menu generation. version is struts
>> menu
>> 2.4.2. I am facing problem to retain the control on sub menu items in
>> some
>> cases. For below mentioned cases, submenu disappers: 1. If my form action
>> class is not defined in menu-config.xml. 2. If I am submitting to
>> different
>> action than the one defined( or originated request from) in
>> menu-config.xml
>> Any inputs to resolve this is highly appreciated. Thanks, byenare.
>> ________________________________
>>  View this message in context: submenu in Tabbed Menu.
>>  Sent from the struts-menu-user mailing list archive at Nabble.com.
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>> _______________________________________________
>> struts-menu-user mailing list
>> struts-menu-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/submenu-in-Tabbed-Menu.-tf4233550.html#a12062068
Sent from the struts-menu-user mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to