Re: Explicit header definition
google is your friend, there are tons of articles on that topic: http://www.google.com/search?q=tomcat+filter+tutorialbtnG=Google-Suchemeta= i.e. http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html cheers greg -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explicit header definition
Does no commnent on this mean: This is not possible? or: Of course, it is obvious you can, as stated *here*? PK At 15:24 3/16/2007, you wrote: If I want to remove or alter headers that are the default for a specific servlet, webapp or instance of tomcat, how might I? Either programmtically or in a config file. ie: - remove or replace the Date: header. - remove or replace the Server: header. The reasoning is for servicing a special client's requests. I would still want other browser serving servlets in the same tomcat instance to use the normal headers. Thanks. PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explicit header definition
Peter Kennard wrote: Does no commnent on this mean: This is not possible? or: Of course, it is obvious you can, as stated *here*? PK It might mean don't hi-jack threads. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explicit header definition
It might mean don't hi-jack threads. Mark ??? I thought I created a new one for this question. (different Subject:) At 10:57 3/18/2007, you wrote: Peter Kennard wrote: Does no commnent on this mean: This is not possible? or: Of course, it is obvious you can, as stated *here*? PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explicit header definition
Upon searching on Google, I came accross Apache mod_headers. mod_headers This module provides directives to control and modify HTTP request and response headers. Headers can be merged, replaced or removed. If you key the following as-is, you'll see mod_headers for the latest version of Apache: mod_headers Version 2.2 -List-Post site:httpd.apache.org If a similar functionality is not available on Tomcat , you could connect Tomcat to Apache http://tomcat.apache.org/faq/connectors.html I haven't tried the above and can't provide additional help/details. -Rashmi - Original Message From: Peter Kennard [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 16, 2007 3:24:46 PM Subject: Explicit header definition If I want to remove or alter headers that are the default for a specific servlet, webapp or instance of tomcat, how might I? Either programmtically or in a config file. ie: - remove or replace the Date: header. - remove or replace the Server: header. The reasoning is for servicing a special client's requests. I would still want other browser serving servlets in the same tomcat instance to use the normal headers. Thanks. PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Don't get soaked. Take a quick peek at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explicit header definition
mod_headers doesn't worker when connecting to tomcat via ajp13 - apache httpd simply doesn't touch headers coming from tomcat mounted via ajp13, therefore your information is not correct. however, to shorten this thread, this is what we did: - tomcat always delivers default headers, and until now there's not possibility to change those headers via some configuration i.e.(web.xml) what to do? for each servlet / jsp where you want to change the default headers, write a filter, which changes the headers, include it into the web-app's web.xml and you're done. hth greg -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explicit header definition
Thanks - is there a good doc around on howto write a tomcat filter :) ? It sure would be nice to have default headers defined in web.xml :) PK At 16:55 3/18/2007, you wrote: for each servlet / jsp where you want to change the default headers, write a filter, which changes the headers, include it into the web-app's web.xml and you're done. hth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explicit header definition
I found this: http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Explicit header definition
It looks like a Filter receives the same ServletResponse object as what is passed back from the servlet. Are their methods on that that allow you to access the Date: and Server: headers (or the whole big header string)? PK At 16:55 3/18/2007, you wrote: for each servlet / jsp where you want to change the default headers, write a filter, which changes the headers, include it into the web-app's web.xml and you're done. hth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Explicit header definition
If I want to remove or alter headers that are the default for a specific servlet, webapp or instance of tomcat, how might I? Either programmtically or in a config file. ie: - remove or replace the Date: header. - remove or replace the Server: header. The reasoning is for servicing a special client's requests. I would still want other browser serving servlets in the same tomcat instance to use the normal headers. Thanks. PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]