wood burning stoves 2.0*
The moose likes Servlets and the fly likes how to get server time and client time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to get server time and client time " Watch "how to get server time and client time " New topic
Author

how to get server time and client time

bappa
Greenhorn

Joined: Mar 11, 2008
Posts: 15
Hi Friends,
I want a program to get the time of server as well as client. By only java servlet. Any help in this regard is highly appreciated. Thanks in advance.


S K B<br />SCJP 1.5 (83%)
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 755
As long as i know there is no straight forward way of doing it.

you can send client time as a request parameter to the servlet and you can get the client time using java script.


Jigar Naik


Syed Saifuddin
Ranch Hand

Joined: Sep 01, 2003
Posts: 130
Hi

The solution for client side is javascript and over server you have java.util.Date


Thank You & Best Regards,

Syed Saifuddin,
Senior Software Engineer

SAP Oracle AIX & Java Training
http://www.socialinet.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get server time and client time