Both servlet spec 2.3 and book more servlets and javaserver pages are good references. Or search mail archive. It's easy to implement.
-----Original Message----- From: Mark [mailto:[EMAIL PROTECTED] Sent: October 20, 2004 10:57 AM To: 'Tomcat Users List' Subject: RE: adding HTTP headers for all responses in web application Sound like a good idea! Can you please point to a good filters-HOWTO? --- Phillip Qin <[EMAIL PROTECTED]> wrote: > Have you thought of filter? > > -----Original Message----- > From: Mark [mailto:[EMAIL PROTECTED] > Sent: October 20, 2004 10:40 AM > To: [EMAIL PROTECTED] > Subject: adding HTTP headers for all responses in web application > > > Hi, > It there any easy way to add few HTTP headers to ALL responses within > one web application? What I'm looking is to prevent caching of error > pages. I > thought it will be greate to add those header: > > CacheControl = "no-cache" > Pragma", "no-cache" > Expires = -1 > > to all my servlet/JSP responces. But I'd rather do it in one place and > not go through all serlvets/JSPs in .war file. > > Thanks, > Mark > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41767cc6114021556718639!