-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gustavo,

Gustavo Noronha wrote:
> I want to have the HTTP server of Tomcat add arbitrary headers to every
> response. As an example, I'd like every request to have in its response, for
> instance:
> 
> X-MyOwnHeader = lala
> 
> Something like Apache HTTPD's mod_headers. Is there a way to do that?

Write a servlet filter and attach the headers to all responses.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMK179CaO5/Lv0PARAhVLAJ91G8PS2cnf1nwzlGDBfgeBlOmJZACfWR/2
fJULsbht1Xw7Q5iCKCo/EI8=
=q9os
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to