Filters:
http://java.sun.com/products/servlet/Filters.html
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Rodrigo Avila wrote:
right... I need to all apps in an TC instance use these headers... how
I do it? I don't know how use filters / valves
right... I need to all apps in an TC instance use these headers... how
I do it? I don't know how use filters / valves...
Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'd use a servlet filter; but either way it should work.
Peter Crowther wrote:
From: Rodrigo Avila [mailto:[EMAIL PROTECTED]
Is possible to put this headers in all responses generated by Tomcat?
response.setHeader("Pragma","no-cache"); response.setHeader
("Cache-Control","no-history");
response.s
A filter is an ideal solution for this... It has the benefit of being
app-specific, so should you ever want to host another app in the same TC
instance that doesn't require those headers, they won't be set
automatically (i.e., at the server-level).
--
Frank W. Zammetti
Founder and Chief Softwar
> From: Rodrigo Avila [mailto:[EMAIL PROTECTED]
> Is possible to put this headers in all responses generated by Tomcat?
>
> response.setHeader("Pragma","no-cache"); response.setHeader
> ("Cache-Control","no-history");
> response.setDateHeader("Expires",-1);
Yes. At worst, you could write a Val