google is your friend, there are tons of articles on that topic:
http://www.google.com/search?q=tomcat+filter+tutorial&btnG=Google-Suche&meta=
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: 79A84FA52
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
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 PROTECTE
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 i
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 no
can't provide additional help/details.
-Rashmi
- Original Message
From: Peter Kennard <[EMAIL PROTECTED]>
To: Tomcat Users List
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" fo
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 *h
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,
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
pro
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
10 matches
Mail list logo