0 Replies Latest reply on Dec 29, 2003 11:30 PM by gary_kephart

    URLConnection.getLastModified and webapp resources

    gary_kephart

      The time that is returned by getLastModified seems to be incorrect for webapp resources.

      My code:
      URL url = getClass().getResource("/x.properties");
      URLConnection conn = url.openConnection();
      long newLastModified = conn.getLastModified();

      If there's a change, then I want to re-read the file using
      getClass().getResourceAsStream("/x.properties")

      Anyone have any info on this?

      Thanks,
      Gary