Hi

I'd like to centralize the code required to prevent caching of JSP's.  For
model 2 architecture's, it seems like the best place to place the following
code

        resp.setHeader("Pragma","No-Cache");
                resp.setHeader("Cache-Control","no-Cache");
                resp.setDateHeader("Expires", 0 );

is in the Controller servlet.  After these lines of code, when the
RequestDispatcher forwards to the appropriate JSP, the necessary headers
would have been added.

The only problem is it doesn't work.  My JSP's don't have the no cache
headers.

Does anyone know why?

Thanks
Albert

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to