Discussion Locked

File Date

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
An HTML page is generated from the JSP page.
The JSP page is scheduled to run every night by window schedule task.
How do I check the HTML FILE DATE using JAVA or Javascript or VBScript to find out whether an HTML page is generated for thatnight or not.

Thank you,
Nhan Nguyen

7 replies

by pritaeas

Hi, javascript has a property document.lastModified which returns the filedate.

hth, Hans 'pritaeas' Pollaerts

by jay eckles

the Javascript document.lastModified usually returns nothing when the page is dynamically generated. Experiment with it, but I think you'll find that the first poster was correct; the easiest way to add the last modified date to the page is to do it with Java code in the JSP.

This discussion is closed to new replies.