Francois I don't know if you have apache in front of tomcat but you can also use mod_rewrite to do even more handling.
Note that the browser needs a minimum of HTTP headers [response code, content type, etc..] to process your response properly as an html page [if this is still what you want]. More ressources: http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html http://httpd.apache.org/docs/2.0/misc/rewriteguide.html Hopes this helps. Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |---------+--------------------------------> | | "COURTAULT Francois" | | | <[EMAIL PROTECTED]| | | emplus.com> | | | | | | 06.01.06 16:50 | | | Please respond to | | | "Tomcat Users List" | | | | |---------+--------------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: "Tomcat Users List" <users@tomcat.apache.org> | | cc: | | Subject: RE: Way to force Tomcat not to send headers in its http response. | | | |Distribute: | |Personal? |-------| | | | [ ] x | | | |-------| | | | >--------------------------------------------------------------------------------------------------------------| I don't see in the servlet api a way to clear or reset the headers ? You can only add a header .... so I don't know how you can remove header with a servlet filter ? Regards. -----Message d'origine----- De : Bruno Georges [mailto:[EMAIL PROTECTED] Envoyé : vendredi 6 janvier 2006 15:06 À : Tomcat Users List Cc : users@tomcat.apache.org Objet : Re: Way to force Tomcat not to send headers in its http response. Francois I would use a Servlet Filter to do this. It is a standard, not tomcat specific and it allows you to decouple the header processing from your existing servlet and it is also very flexible. you will be handle to handle both HTTP response and request headers. Hope this helps. Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |---------+--------------------------------> | | "COURTAULT Francois" | | | <[EMAIL PROTECTED]| | | emplus.com> | | | | | | 06.01.06 14:02 | | | Please respond to | | | "Tomcat Users List" | | | | |---------+--------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: <users@tomcat.apache.org> | | cc: | | Subject: Way to force Tomcat not to send headers in its http response. | | | |Distribute: | |Personal? |-------| | | | [ ] x | | | |-------| | | | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hello, Do you know if there is a way to force Tomcat not to send http headers in its http response ? Regards. LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word "misdirected" as the message and delete this e-mail from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]