tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JStanc...@vinu.edu
Subject RE: Help root context problem!!!
Date Mon, 13 Oct 2003 04:45:29 GMT
Yes, I did this. But the problem looks to me like the server is caching 
the page and not the client. Because, when you access the servlet directly 
it refreshes the content just fine, but when you access it through the jsp 
page that forwards the request it never changes after the first request.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813




"Wade Chandler" <wchandler@redesetgrow.com>
10/10/2003 12:26 PM
Please respond to "Tomcat Users List"

 
        To:     "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
        cc: 
        Subject:        RE: Help root context problem!!!


I did not see the other posts, but anytime I have a problem with issues
like this I use a meta tag to make the page expire some time ago.  I
usually put stuff like this:
<META HTTP-EQUIV="expires" CONTENT="Tue, 2 OCT 1996 17:45:00 GMT">

in my head.  There is also a header which you can set in your
jsp/servlet code of the same name (Expires)..that is what the HTTP-EQUIV
does.  Says in this html take this to be the same as an http header and
use it as such.

Hope that helps,

Wade


-----Original Message-----
From: JStanczak@vinu.edu [mailto:JStanczak@vinu.edu] 
Sent: Friday, October 10, 2003 1:14 PM
To: Tomcat Users List
Subject: RE: Help root context problem!!!


Well, I got it to work, but I don't care for it. I'd like to know what's

wrong if someone knows. Here's the jsp below:

<%
java.net.URL url = new 
java.net.URL(request.getRequestURL().append("/PageWorks/servlet/PageMill
").toString());
java.net.URLConnection connect = url.openConnection();
connect.connect();

java.io.BufferedReader in = new java.io.BufferedReader(new 
java.io.InputStreamReader(connect.getInputStream()));
String html;
while((html = in.readLine()) != null){
out.write(html);
}
%>

This works, but it's not very pretty of a method. Why doesn't the 
<jsp:forward/> work? This way it doesn't cache the page forever on the 
server. If I just us jsp:forward it caches the page and never update
it's 
information from the servlet.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message