tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksey Dayen <>
Subject RE: Tomcat4.1
Date Wed, 25 Jul 2007 20:58:01 GMT
Right now we using TomCat 4.1 with JDK 1.1.

Would our TomCat version work if we update to J2SDK 5.0 with Update 6?

Please help!!!

Many thanks

-----Original Message-----
From: Nathan Hook []
Sent: Wednesday, July 25, 2007 4:55 PM
Subject: Re: Tomcat5.0.28 character encodingg problem

I think my statement of "most browsers will ignore this value" might have
been a tad bit on the excessive side upon further reading and i was hoping
to have that read as don't only rely on using the meta tag.

>From my understanding there are broswers where they can set their own
content type no matter what comes down in the response.  Even if the content
type is set in the header or with a meta tag.  I'm not saying this is a good
thing.  I'm just saying that I read this somewhere in passing when we were
trying to figure out how to character encoding.  Some browsers just won't do
what you're ask them to.

However, setting the content type in both the header and in the meta tag
isn't a bad thing.  It can only really help you.  Its much like when you're
asking the client and all the intermediary servers not to cache any of your

Setting a few of the cache-control values should work, but its best to send
all the values you can to make sure that you're communicating to everyone
you can.

httpResponse.addHeader("Cache-Control", "no-chache, no-store,
must-revalidate, max-age=0, proxy-revalidate, no-transform, pre-check=0,
post-check=0, private");

Even in the case above.  If a intermediary server wants to cache your
data... its going to cache your data.

I guess what I'm really trying to say is if there are many ways of telling a
browser how to handle something, implement everyone of those ways.  Because
you aren't guaranteed that any specific was is going to work on all

Warm Regards.

----Original Message Follows----
From: Christopher Schultz <>
To: Tomcat Users List <>


Nathan Hook wrote:
 > - Set the meta type in each and every jsp to be utf-8.  Now, most
 > browsers will ignore this value from my understanding, but it shouldn't
 > hurt to add it.

Really? The HTTP header should override any META tag, but the META tag
should be used if, for some reason, there is no Content-Type header.

- -chris


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message