Re: Automatic recompilation
Scott Farquhar <[email protected]> Wed, 22 Jun 2005 10:23:56 +1000
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
François, On Tue, Jun 21, 2005 at 06:29:20PM -0500, François Gaudin wrote: > I did the test without sitemesh in a trivial JSP > If I include a JSP file or HTML file in main.jsp using: > <jsp:include page="test.jsp" flush="true"/> > <jsp:include page="test.htm" flush="true"/> > > then any change in either test.jsp or test.htm results in main.jsp being recompiled regardless of whether main.jsp is touched. > > This is not the case when I use sitemesh. When I modify the pages included by my decorator then target pages are not recompiled until i change the date of modification for the file to be decorated. > > To be more precise, I have a decorator that includes a menu file. When I change the menu file then the changes are not taken into account until I modify each of the target decorated pages. This would appear to be a problem with your application server. It seems to be treating pages that are accessed directly different that ones that are accessed by a requestDispatcher.include() or forward(). If you access the decorator directly (via your browser), I'm guessing that it will get recompiled. If you want to setup another test case, include a main.jsp using requestdispatcher.include() from another page, and see if changes get picked up. Cheers, Scott --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]