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

[1759 byte] By [billyholea] at [2007-10-3 0:32:07]
# 1
Can no one give me any direction?
billyholea at 2007-7-14 17:25:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I had no idea you could sign a servlet. And if you found loads of information on how to do that, then congratulations. I couldn't find any references to signed servlets on the web in documents dated later than 1999. And there's no reference to signing in my book about servlets and JSPs.

I don't believe that any information about a file is sent by the browser except its name and its contents. So it seems to me that you wouldn't be able to remedy that problem by doing anything on the server. You would have to put something on the client that can look at a file and find out other information. For me that something would be a signed applet.

DrClapa at 2007-7-14 17:25:26 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...