match DateTime for uploaded files?
Hello. I am not completely new to using servlets, but haven't been using them as long as I've been writing JSP. Here's what I am trying to do:
I am creating an upload functionality to a document repository where the integrity of the information associated with the delivered file is paramount. The term 'delivered file' is the copy of the file on the client system which is being choosen for upload to my server. The requirement I have is that the date/time of the file written to the server match that of the delivered file.
I am using code as a base for my upload function, that I got from raditha.megaupload and got that working fine until the requirement for the matching of the date/time arose.
I realize I'll have to use a signed servlet, (which I've never used) for access to the modified date of the files on the client system, and I found plenty of info on how to sign the servlet and stuff, but from there I am a bit lost.
What type of objects would get passed to this servlet I make? Can I just use a HTML form file type? How will my code know for isFile, or any other methods I use, that the path to this is not on the server but a client C:\?I know that I'll call the following in some sort to get the needed info:
File f =new File(fileName);
if (f.exists()){
long offset = f.lastModified();
...
And then do a setLastModified on my new server side file, but I guess the accessing of file information of the client side is where my confusion is coming. I've been researching all day. Thanks in advance for any help you can provide.
Bill

