Re: Automatic recompilation
Matt Raible <[email protected]> Tue, 31 May 2005 18:13:04 -0600
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
On 5/31/05, François Gaudin <[email protected]> wrote: > The JSP is the decorator that is included in my initial post. When a request is made to test.html then a pattern is matched in sitemesh.xml and the decorator is used to decorate the page using menu.htm. This works fine - the JSP gets compiled and the html files get included in the resulting servlet. If I change test.html then the JSP gets recompiled as expected so that's good. But if I change menu.htm the JSP doesnt get recompiled and calls to test.html and any other html files to be decorated with the menu result in the old unmodified menu being displayed. > > Is there anything I can do to make sure that the JSP gets recompiled whenever included html files are modified? If you're using <%@ include file="/menu.jsp" %>, there won't be any re-compilation. It's only be re-checked when you restart your webapp. You can get around this using <jsp:include page="/menu.jsp"/>. Matt > > --------------------------------------------------------------------- > Posted via Jive Forums > http://forums.opensymphony.com/thread.jspa?threadID=2736&messageID=7643#7643 > > > --------------------------------------------------------------------- > 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]