Below are revisions for this snippet.
Stop page caching in J2EE
This should stop your JSP page being cached by browsers and proxies.
It tries to cover all bases, just stick it at the top of any JSP page.
If your entire web application requires this, it would be much more economical to write a J2EE Filter, and run this code for each request before chaining on to the next filter..






