Jody,
The "Last-Modified" header is not a header in the request. The HTTP/1.1
spec identifies the various standard headers: "Last-modified" is neither a
method of the request or the response. You do find a "Last-modified" header
associated with http entities which may or may not map to the entire
response.
It's easy to get confused as the request does have an "If-modified" header
which requests that updated information only be sent if the server
identifies the page as having been modified since the date provided in the
request. Otherwise, the browser will load from cache. However, JSP pages,
because they are usually dynamically generated, don't really respond well to
this header (I suppose a clever server could do something useful with this,
but I don't believe there are any that clever as of today.)
As far as I know, there is no easy way to obtain this information (I'd be
interested in any info other's can provide.)
-AMT
-----Original Message-----
From: Jody Kerr [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 06, 2000 3:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Idiot Friday afternoon question
ok,
Tried it and am getting thr following errors:
500 Servlet Exception
/aflit/index.jsp:131: Invalid type expression.
request.getHeader("Last-Modified")_jsp_raw_out.write(_jsp_string1, 0,
_jsp_string1.length);
^
/aflit/index.jsp:131: Invalid declaration.
request.getHeader("Last-Modified")_jsp_raw_out.write(_jsp_string1, 0,
_jsp_string1.length);
^
2 errors
Here's what I put in the code:
<%request.getHeader("Last-Modified")%>
Thanks, I'm feeling dumber by the minute today...eh
Jody
----- Original Message -----
From: "Daryani Santosh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 06, 2000 3:21 PM
Subject: Re: Idiot Friday afternoon question
> Use Last-Modified , its a HEADER attribute
>
> request.getHeader("Last-Modified")
>
> Santosh
>
>
>
>
>
> Jody Kerr <[EMAIL PROTECTED]> on 10/06/2000 05:42:53 PM
>
> Please respond to A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>
> To: [EMAIL PROTECTED]
> cc: (bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject: Idiot Friday afternoon question
>
>
>
> Hello folks,
>
> It's friday afternoon and my brain is jello. How do I return a page's last
> modified date?
>
> Thanks,
>
> Jody
>
>
===========================================================================
> 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
>
>
===========================================================================
> 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
>
===========================================================================
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
===========================================================================
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