aspose file tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
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?
It is sorta covered in the JavaRanch Style Guide.
subject: servlet clock