I have an options menu, over a jsp page, on which users explore items, that have sub-items, that have sub-sub-items and so on. Items are collapsable, so the user can see the hierarchy of the items he want.
The menu is expanded manipulating the css using javascript and jquery.
This menu is shown on all the pages of the application, and, every time the users goes to a new page, the menu, must be shown as the user left it on the previous page (all the menu items that the user expandend must be remembered).
He can change page by submiting a form, following a link, or going back on the browser.
How can this be donde? Is uploading the HTML portion of the menu to the session a viable solution? Cookies perhaps? Or there is a better way ?
PS: also struts2 is used on the application.