Uhh, headers don't work that way.  You send headers to help the
browser and network know what they are working with.  The browser sets the
headers for the new request to help you and the network deal with the
request.  One set of headers has no bearing on any others.

        Randy

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 2:18 AM
> To: A mailing list about Java Server Pages specification and reference
> Cc: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology.; [EMAIL PROTECTED]
> Subject: problem in getHeader()
> 
> 
> 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
> 

Reply via email to