Implementing a clock using servlets

Advertisement
I have a servlet that I want to display a clock. What is the best way to go about it?
Advertisement

Replay

I want to display the time digitally on the page. I could get the current time from Calendar but if I were to do that I would have displayed on the website the time when the page loaded. I could then tell the page to update every minute, but that wouldn't be very efficient. Is there a better way?