You can retrieve the timestamp via File.lastModified(): pass that to a Date
object to get a human-readable value:
new java.util.Date( new java.io.File("/path/to/file").lastModified()))
Output that in a scriptlet to see it on the page (there may be tags to
handle the file lookup and date conversion/formatting to avoid scriptlets);
At 01:24 PM 12/15/2005, Saha Rabindra N wrote:
Hi All,
Can anyone give me some idea about following ::
I have two source code folders in Unix for a tomcat webapps. I need to
pick up the most recent timestamp of the files out of those two folders.
I need the most recent timestamp value in form of Date which will be shown
in a web page as
Last Update On : <timestamp value>
Can you tell me how do I do it in Java.
Thanks for help.
Regards,
RNS
The information contained in this e-mail may be confidential and is
intended solely for the use of the named addressee.
Access, copying or re-use of the e-mail or any information contained
therein by any other person is not authorized.
If you are not the intended recipient please notify us immediately by
returning the e-mail to the originator.(17b)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
David Rickard
Software Engineer
TechBooks/GTS
Your Single Source Solution!
Los Angeles CA * York, PA * Boston,MA * New Delhi, India
Visit us on the World Wide Web
<http://www.techbooks.com>http://www.techbooks.com
[EMAIL PROTECTED]
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 (Fax)