Re: HOWTO disable Tomcat from caching dynamic picture

2006-10-01 Thread david.delbecq
Tomcat does not cache output of a servlet. By definition the output of a servlet is dynamic and as such has no reason to be cached. The image is probably cached somewhere else... John Mok a écrit : Hi, I am using Tomcat 5.5.17 with Sun JDK 5.0 Update 7 on CentOS 4.3. I have a servlet, namely

Re: HOWTO disable Tomcat from caching dynamic picture

2006-10-01 Thread Martin Gainty
left out setDateHeader response.setDateHeader(Expires, 1); response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache); Not much to recommend until we see the code which does the conversion (assuming JPG to PNG) Anyone else ? Martin --

RE: HOWTO disable Tomcat from caching dynamic picture

2006-10-01 Thread Paul Hamer
Hey John, Tomcat does not do any caching. Try adding these HTTP headers: response.addHeader(Pragma,no-cache); // HTTP/1.0 response.addHeader(Cache-control,no-cache, no-store); // HTTP/1.1 That's the official way. However, due to an IE4-IE6 bug, you might want to replace the second one by:

RE: HOWTO disable Tomcat from caching dynamic picture

2006-10-01 Thread Roland Rabben
Hi If all else fails, try to add a timestamp variable to the link. By dynamically adding a unique timestamp like http://foo.com/document.jsp?time=[timestamp] the page will not be cached. Regards Roland Rabben -Original Message- From: Paul Hamer [mailto:[EMAIL PROTECTED] Sent: 1.

Re: Struggling with basic database connection

2006-10-01 Thread John Najarian
Alan, Did you ever resolve this? I don't have enough information here to help you. Thanks, John Najarian --- Alan Chandler [EMAIL PROTECTED] wrote: On Saturday 23 September 2006 15:23, David Smith wrote: Correction: context.xml belongs in META-INF of the war archive. I have just

Re: Struggling with basic database connection

2006-10-01 Thread Alan Chandler
On Sunday 01 October 2006 17:27, John Najarian wrote: Alan, Did you ever resolve this? I don't have enough information here to help you. ... Sort of ... The WTP plugin for eclipse copies what is in META-INF/context.xml and writes it into CATALINA_BASE/conf/server.xml. So for tomcat5.0,

Re: Struggling with basic database connection

2006-10-01 Thread Martin Gainty
Alan- context.xml identified Naming and Session management items more info available at http://tomcat.apache.org/tomcat-5.0-doc/deployer-howto.html HTH Martin -- * This email message and any files transmitted with it contain

IIS 6.0 with JK 1.2.19

2006-10-01 Thread Fisher, Mitchell L
I have followed the instructions at http://reynir.net/java/greinar/nr/52/ath but have managed to not get it right. My ISAPI Filter does not show any arrow in the status column, red or green. The Priority is * Unknown * and the Enable button is grayed. Are there any special instructions for

Apache Tomcat\Windows XP\page not found

2006-10-01 Thread Frank J Murray
It happens when I attempt to acess the Apache Tomcat page http://localhost:8080. The browser is IE 6.0, running under Windows XP. I checked Control Panel - Administrative Tools - Services, and lists ApaAche Tomcat as neither Started nor Stopped. After I manually start it and try accessing the

threads, performance, and exceptions

2006-10-01 Thread Peter Warren
I have an application that links users so they can chat. My client operates within a browser. To be firewall friendly and avoid client server sockets listening for incoming requests, I implemented the client so that it makes http requests and sits and waits (maybe for minutes on end) until it