In my application I have a requirement that I have to upload a file to the server (
Tomcat 6). On the server I have find out the file's last modified date (the one which we usually find in File->Properties). I am using Struts2.
I am using the "s:file" tag in my multipart form in my
jsp to allow the user to select the file.
This is the code snippet of the jsp:
Action class:
Now, these variables are mapped to my jsp element. Using the File object (upload) in the
java code if i try to do something like this:
I get back the current date on the server and not the actual last modified date of the file.
Is there any way by which I can find the last modified date of the uploaded file in
Struts 2. Please help.
Thanks in advance.