File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet clock" Watch "servlet clock" New topic

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?
I agree. Here's the link:
subject: servlet clock
It's not a secret anymore!