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.