Ted, Thanks for your reply.
After successful login, I forward it to logonAction class where I am setting menuBeans. I add menuBeans to a vector say menuItem. After adding all menuBeans to this vector, I am adding the vector to session using request.getSession.setAttribute("menuItems", menuItem). In my menu.jsp I am using logic:present and logic:iterate tags and iterates through each elements of this vector in my side menu and displaying 12 links and 2 expandable menu items in side menu. When I click any of these expandable menu items, it displays 4 links below it. When I click any link below this expandable menu item (or any of the 12 links), it displays content of the page in body area and reloads side menu with both the expandable menu items as contracted (as it was in the beginning). Please advise me where I am wrong. Thanks again. -Naresh -----Original Message----- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Sunday, September 14, 2003 7:04 PM To: Struts Users Mailing List Subject: Re: Remember menu node With an web application, the only place we have to store state is the request and the session, or some external device, like a database. So for something like this, you would probably store the object that represents the menu state in the client's session. request.getSession().setAttribute("menuBean",menuBean); and then look for it before displaying a menu menuBean = request.getSession().getAttribute("menuBean"); if (null==menuBean) menuBean = new MenuBean(); -Ted. Naresh Chapani (Sympatico) wrote: > I am new to struts. > I am using tiles and I am creating dynamic side menu using JavaBaen. When I > click a link in side menu it expands and displays link below it. Then I > clicks the link which will display the contents in body area but my side > menu is redisplayed as original and the link which I expanded is contracted > automatically. Is there any mechanism through which the system can remember > the status of side menu? > > TIA > > Naresh > -- Ted Husted, Junit in Action - <http://www.manning.com/massol/>, Struts in Action - <http://husted.com/struts/book.html>, JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]