Ted, Thanks for your reply but I am still confused about how I can store information about which node of my menu was expanded and which node was contracted in a menuBean. I am not using struts-menu.tld, do I need to use it?
Thanks again. -----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]