Howdy, Is reloadable="true" for your context in server.xml? Tomcat doesn't check pages every second. So you might have to wait a few seconds before your folder updates are visible.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Joe Krause [mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 15, 2003 6:50 PM >To: '[EMAIL PROTECTED]' >Subject: Advanced Question about <jsp:include /> tag > >I have a complicated menu structure that is dynamically generated per >client >on login of the webapp. Each client has a different set of folders which >don't change often but require a bit of processing to produce - so I >decided >to create an include file and cache it on the server. I include that cached >HTML/Javascript menu structure with the following command: > > > ><jsp:include page="<%= clientSession.menuPath %>" flush="true" /> > > > > > >This works great! However, a problem occurs when I need to update one of >these cached files because the client added or deleted a folder. Sometimes, >the pages that are returned contain the state prior to any change. If I >then >refresh or go to another page, the folder structure is immediately changed. >Sometime this happens, sometimes it works right. > > > >It seems like Tomcat is caching the contents of the file that <%= >clientSession.menuPath %> is poiting to. I know for a fact that the >browser >is not caching the page (I've included all the appropriate HTML header tags >to stop browser caching, plus there is data on the page that is changing >with each page refresh). Also, I am not using any threads, and my updating >of the page is happening prior to the including of the page. > > > >Has anyone had this problem before? Is ther a way to tell tomcat to always >go and get the page every time? > > > >Joe Krause This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
