try these commands in a jsp page

<%  response.setHeader("Pragma", "no-cache");
   response.setHeader("Expires", "0");
   response.setHeader("Cache-control", "no-cache, must-revalidate");
%>

-----Original Message-----
From: Sajag Patel [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 2:35 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP Tomcat for developers


You need to deleted the cache from Tomcat/Work/. Everytime restart the
server.


sajag

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Tomé
Sent: Friday, June 21, 2002 2:37 PM
To: [EMAIL PROTECTED]
Subject: JSP Tomcat for developers
Importance: High


Hi,
I am using tomcat 4.0.1 and having some problems working with JSPs.
Every time I edit a JSP it shows me the first version. (It's getting cached)
After a while it compiles again and shows me the new version. I've been
reading a bit and seen that a lot of people are having the same problem. I
know it's not my browser, I tried all that "Pragma no-cache stuff",  the
problem is that tomcat is not compiling a new version of the JSP.

Does anyone know how to set Tomcat to always compile?
Or is their anyway for a developer to edit JSPs quickly and see the result
"on the fly"
(I have to wait 3 minutes for the cache to clean or delete the localhost
folder in /work)

Thanks in advance.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to