This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet clock Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet clock" Watch "servlet clock" New topic
Author

servlet clock

Peter Guillebaud
Ranch Hand

Joined: Jul 11, 2001
Posts: 57
I'm using an applet to display the time in a web page, but it gets the time from the local machine. Would it be possible to somehow get a servlet to do the same thing using the web servers' clock? I suppose it would use a thread to update every second but then how to print this to the screen? Or is there another way?
TIA
 
wood burning stoves
 
subject: servlet clock
 
Similar Threads
OS Clock
Servlet Running in Infinite loop
Digital Clock
WA #1.....word association
Bea weblogic 10.3g setting up clock skew