Hola,

>Hello.  I am using Tomcat 4.1.30, with java 1.4.2 on a Readhat linux
>server.  I was going to submit a bug report, but I noticed the bug
>tracker only goes through version 4.1.9.  Is that bug tracker still
>being used?  Should I still submit bugs to it?

Look again ;)  The bug tracker goes through 4.1.30, it's just a string
sort so 4.1.30 is in the middle and 4.1.9 is at the end.

>Anyway, I am implementing an HTTP Cache filter using the Java Servlet

You can save yourself some effort and use an existing free filter such
as those in http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html
or http://www.servletsuite.com/servlets/responseflt.htm (there are many
others, you can just google).

>When I look at the actual HTTP generated response I'm finding that my
>attempt to set the "Date" header is being ignored and the date of the
>header always reflects the time "now".  So when my filter returns a

Are you sure you're not setting it to "now" ? ;)

I can see only one place in the tomcat code that sets this header: the
Coyote Http11Processor (org.apache.coyote.http11.Http11Processor in the
jakarta-tomcat-connectors CVS module).  That code does a check to make
sure it's not overwriting an existing header with the same name.
Furthermore, even if this code sets the header, you second call would
overwrite the currently set value.  You're setting it in your filter
after the doChain call, right?

(Actually, my above paragraph is looking at the 5.0.27 source code, but
I think 4.1.30 is the same in this area).

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to