Hi,
SORRY for posting again...... but i messed with this.
I am trying to expire a page.I am displaying a first.jsp which has link to second.jsp 
and trying to expire the first.jsp after displaying the second.jsp.But i am unable to 
do so.when i click the back button of my browser the first page is not expiring.

I searched the forum and found that using bellow code can help me to expire the page. 
I placed the code in first.jsp but no luck.
<%
if(request.getProtocol().compareTo("HTTP/1.1") == 0) 
response.setHeader("Cache-Control", "no-cache"); 
if(request.getProtocol().compareTo("HTTP/1.0") == 0)
response.setHeader("Pragma", "no-cache"); 
response.setDateHeader("max-age", 0); 
response.setDateHeader("Expires", 0); 
%>

I tried putting response.setDateHeader("Expires", -1); but no luck

Can some one help me where i went wrong?

Thanks in advance
and once again sorry for posting again
phani

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to