tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikola Milutinovic" <Nikola.Milutino...@ev.co.yu>
Subject Re: Included (<jsp:include .../> JSP not being recompiled
Date Tue, 06 Nov 2001 07:40:41 GMT
> --- Sriram Narayanan <sriramx_2000@yahoo.com> wrote:
> > > Modifying the JSP which includes the other JSP
> with
> > The changed included jsp will be noticed only when
> > the main JSP has to be recompiled.
> > -> when the main.jsp is changed
> 
> <jsp:include page="not-getting-recompiled.jsp" /> does
> not cause 'not-getting-recompiled.jsp' to get
> recompiled.

Let's get one thing straight - <@ include ...> is a COMPILE-TIME directive, once the
working servlet is generated, no changes of the included resource will be reflected. <jsp:include
...> is a RUN-TIME action, which translates to a method "include( ... )" being called from
the resulting servlet.

> I retested this under Tomcat 4.0.
> 
> 1. Modifying the included JSP does not cause it to be
> recompiled.
> 
> 2. Modifying the JSP which includes the
> non-recompiling JSP does not cause the non-recompiling
> JSP to recompile.
> 
> I would categorise this as a non-useful feature. Does
> the JSP spec have any to say on the conditions under
> which a JSP should be recompiled.

Whenever it is requested from the sevlet engine and the source JSP has been changed. If it
is "statically" included via <@ include ...>, then it is not requested from the engine
as an URL.

Nix.
Mime
View raw message