IMO, it would work better with lastModified() instead of getLastModified()

Pierre-Yves Saumont
[EMAIL PROTECTED]

-----Message d'origine-----
De:     Javier Cazares [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 25 mai 2000 15:07
A:      [EMAIL PROTECTED]
Objet:  Re: Urgent ! SSI - LAST_MODIFIED

        .Kelly,

                .to include the last modified page value is not as easy in a
jsp file as it is in a .shtml file.

                .you need to do the following:


                                <%@ page import="java.io.*,java.util.*" %>

                                <% File f = new
File(application.getRealPath(request.getServletPath())); %>

                                <% Date modified = new
Date(f.getLastModified()); %>

                                <html><body>

                                        This page last modified on: <%=
modified %>

                                </body></html>
                .hope it helps,

                .javier.

   Javier Cazares
    GEPS Intranet Web Team
    1 River Road, Bldg. 40-213
    Schenectady, NY 12345
    P: (518) 385-1521
    Email: [EMAIL PROTECTED]


> -----Original Message-----
> From: Kelly Lew
> Sent: Thursday, May 25, 2000 7:28 AM
> To:   [EMAIL PROTECTED]
> Subject:      Urgent ! SSI - LAST_MODIFIED
>
> Hi,
>
> How can I include the <!--#echo var="LAST_MODIFIED"--> into the jsp
> file. It seems like working to me.
> Please help.
>
>
>
> Kelly
>
> ==========================================================================
> =
> 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

Reply via email to