tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wagoner, Mark" <MWago...@wildflavors.com>
Subject RE: triggering JSP page recompilation
Date Fri, 01 Feb 2002 19:42:07 GMT
You really want to use the dynamic directive if the file being included is
another JSP file.  Otherwise you will get the source of the included JSP in
the output, not the output of the included JSP.

That came out pretty clear.  :-)

-----Original Message-----
From: Clay Mitchell [mailto:clay@pfd.net]
Sent: Friday, February 01, 2002 2:38 PM
To: Tomcat Users List
Subject: Re: triggering JSP page recompilation


use <jsp:include> then. what you're doing now just statically  includes
the contents of what you include in the class file when it recompiles. the
jsp:include should do this dynamically.

-CLay

On Fri, 1 Feb 2002, Guillermo Payet wrote:

> > You don't have to touch all the files.  Just the JSP that contains the
> > include directive.  Tomcat uses the date of the JSP file to determine if
it
> > needs to be recompiled.  If it does, then it will re-read any included
> > files.
>
> Therefore... I have to touch all files, since all JSP files include
> the file that was modified.  As I mentioned before, GNUJSP keeps a
> record of what files include what, and if told to, recompiles all
> including files when an included file changes.  I wonder if there
> is a way to make Tomcat act this way.  We have 4 people working on
> a project that has about 50 JSP pages, and they all include
> header, footer, menu, and other JSP included files.  Having one
> person do a "touch *.jsp" whenever he tweaks "lib/header.jsp" is
> a bit disruptive.
>
> 	--G
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message