tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <>
Subject RE: tomcat's serlvet container and http
Date Wed, 05 Feb 2003 12:21:09 GMT

Perhaps you could also post this on tomcat-dev.  You might get a quicker


-----Original Message-----
From: rf [] 
Sent: Wednesday, February 05, 2003 12:37 AM
Subject: Re: tomcat's serlvet container and http

No answer to any of the questions below? 

Subject:  tomcat's serlvet container and http
From:     rf <rufoo2001 () yahoo ! com>
Date:     2003-02-03 1:59:58

I have some questions related to how tomcat's servlet
container handles some HTTP/1.1 issues. Understanding
these, I think, would be beneficial in improving the performance of my
web-application. Here they go:

1. How can my servlet respond with transfer encoding
as chunked? When is my serlvet's OutputStream
committed? I dont have all my data ready, I want send
it out in chunks - how do I do it?

2. How can I use "100 Continue" response header? This
is usually used on slow links, but I want to use it
when my processing is slow. My servlet is doing some
processing and is going to take some more time - how
do I inform this to my client? Can I just set HttpServletResponse.setStatus
(SC_CONTINUE)? (Can this response be sent more than once?) If this method is
not right for the scenario, what is the recommended way of informing the
client to patiently wait for some more time?

3. The response in HTTP/1.1 can have "footers" in
addition to "headers", how do I set a "footer"? I
guess we cannot use HttpServletResponse.setHeader
because the servlet spec says setting a header has no
effect if the response is already committed.

4. Persistant connections - is this configurable in a
tomcat? It might be the case that this is not
something a user should bother about, the servlet
container will take care of it. What does tomcat do?
Whenever needed, I want to recommend my client to use
a persistant connection for following requests. Can I
do it? An IE question: what factors determine that IE
should use a persistant connection?

5. If-modified-since header. There is a
getLastModified method in the servlet interface, this
returns a long(for date). I guess I should implement
this method for tomcat to respect the
if-modified-since header. I recently implemented a
caching filter, which intelligently uses the default
servlet to serve cached static content. But since the
former method is simple and more effective, I would
like to know when IE uses this header. Since this
header is optional, how do I recommend IE to use it?

Thank you,

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

To unsubscribe, e-mail:
For additional commands, e-mail:


Checked by AVG anti-virus system (
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003


Checked by AVG anti-virus system (
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message