i can't get headers in second page set in first page .
i am using tomact 3.2.2 .
this is my detail problem
this is first.jsp
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("max-age", 0);
response.setDateHeader("Expires", 0);
this is second.jsp
Enumeration e = request.getHeaderNames();
while(e.hasMoreElements()){
String ssss = (String) e.nextElement();
System.out.println("Header is = "+ssss+ " = "+
request.getHeader(ssss));
}
System.out.println(" Our Header is = "+
request.getDateHeader("max-age"));
System.out.println(" Our Header is = "+
request.getDateHeader("Expires"));
i can't get headers in second.jsp what i set in first.jsp .
i am using tomact 3.2.2
===========================================================================
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://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