Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Last Modified date of a remote JSP file - URGENT

843790Jul 16 2007 — edited Jul 17 2007
Hi All,

I am getting the last Modified Date for all types (.html, .txt etc.) of remote files except JSP file. Here is the code I am using:
URL url=new URL("http://www.mysite.com/index.html");
URLConnection uc=url.openConnection();
Date d=new Date(uc.getLastModified());
System.out.println(d);
Only for JSP files I am getting 0 as return value of getLastModified(). Can anybody explain why is it so.
Is it the case that JSP file is not setting the lastModifiedDate response header.

Please help. This is URGENT.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2007
Added on Jul 16 2007
9 comments
529 views