tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Baker <jba...@teamenergy.com>
Subject Re: Re[2]: Re[2]: Mozilla and Tomcat
Date Wed, 22 Aug 2001 12:23:19 GMT
On Wednesday 22 August 2001 00:38 am, you wrote:
> It sounds like a problem in your jsp or servlet.
>
> It looks like your response is not being truncated, since you get your
> </html> tag. Make sure to flush the output stream before closing it in
> servlets. Also, you might want to check whether you are using page.forward
> since this will replace the response with the forwarded page response.
> Without seeing your servlet or jsp, It's difficult to help further.
>
No, it's not. The jsp/servlets are fine. It's only when tomcat rebuilds the 
jsp class from the jsp page when it changes. After a few refreshes, it works, 
and then works for good (until I change it).

> What version of Tomcat are you running. You should be running either 3.2.3
> if you are using the 3.2 branch,  some version of 3.3, or 4.0b7 which would
> be best.

4.0beta7

>
> ____________________Reply Separator____________________
> Subject:    Re: Re[2]: Mozilla and Tomcat
> Author: tomcat-user@jakarta.apache.org
> Date:       8/21/2001 11:45 PM
>
> Hello.
>
> We're getting off topic here. I have caching turned offf, however why would
> mozilla print <html><body></body></html> when the JSP page doesnt
produce
> that (well it does, but with a load of other stuff in there!). I can
> understand it caching pages, but not a page that has never been produced.
>
> Tomcat must be doing something odd. Perhaps it is indeed returning just:
>
> <html><body></body></html> when it's rebuilt a page recently?
>
> I dunno, but it's a server problem not a caching problem IMHO.
>
>
> John
>
> On Tuesday 21 August 2001 23:28 pm, you wrote:
> > You can force the response to not be cached by the browser and proxy
> > servers by setting headers in your jsp response before writing your html
> > response header. Make sure to explicitly clear your browser cache once
> > after doing this to get rid of any latent cached pages.
> >
> > response.setHeader("Pragma", "No-cache");
> > response.setDateHeader("Expires", 0);
> > response.setHeader("Cache-Control", "no-cache");
> >
> > ____________________Reply Separator____________________
> > Subject:    Re: Mozilla and Tomcat
> > Author: tomcat-user@jakarta.apache.org
> > Date:       8/21/2001 1:55 PM
> >
> > At 01:50 PM 8/21/2001, you wrote:
> > >I've ran into similar problems with Internet Explorer. Not exactly
> > > though. Basically, I've seen IE display a cached page, even if you have
> > > caching turned off. What I do is completely exit and restart my browser
> > > each time I test a change to a servlet.
> >
> > Yeah, IE has a wicked sticky cache.

-- 
John Baker, BSc CS.
Java Developer, TEAM Slb. (http://www.teamenergy.com/)
The views expressed in this mail are my own.

Mime
View raw message