Hi, Michael.

     The <%@ include ... %> tag is a static include, and, once the page that
includes something like this has been compiled, a change to the included file
will not trigger a recompile of the page.  As far as I know, you have to
either change the modification date of the main page (can use touch on Unix,
Linux to do this easily - don't know about Win XP) like you've done or delete
the servlet in the work directory that was created from the page.  The
<jsp:include .../> is a dynamic include that will cause the main page to be
recompiled if the included page changes.  I don't know of any way to configure
a "caching" setting in Tomcat to change the way these are handled.

HTH,
-Jeff



                                                                                       
                            
                    MTimpe@t-onli                                                      
                            
                    ne.de                To:     "TOMCAT Mailing List" 
<[EMAIL PROTECTED]>            
                    (Michael             cc:                                           
                            
                    Timpe)               Subject:     Caching of JSPs within Tomcat    
                            
                                                                                       
                            
                    01/13/02                                                           
                            
                    06:11 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    "Michael                                                           
                            
                    Timpe"                                                             
                            
                                                                                       
                            
                                                                                       
                            




Hi,

I have some trouble with the reload of JSPs.

Basic data is

- Win XP, Apache 1.3.xx, Tomcat 4.01, IE 6.0 (IE6 with the option to reload
the page at each access)

Suppose You have an JSP page "prj_0000.jsp" that includes another JSP page by
using a tag like this: <%@ include file="prj_0007.inc" %>

If I have changed the file prj_0007.inc and I press "Reload" in the browser.
The changes will have no effect (are not loaded into the browser). I have to
change
also the file "prj_0000.jsp" (by adding a blank line to the file to change the
files modification date).

How can I disable the "caching" of the JSPs within tomcat so that changes in
included files have their effect?

Greetings and thank you for your help



--------------------------------------------------------------------------------

Michael Timpe
Melchiorstr. 24
50670 K�ln
eMail: [EMAIL PROTECTED]







--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to