This is an example application made with Google's Web Toolkit (GWT 1.2.22).
It uses JSON (on client side com.google.gwt.json.client,
on server side org.json.simple) for client/server communication
(both ways).
The client sends a format string to the
server (e.g. {"format":"yyyy-MM-dd HH:mm:ss.SSS z"}), and
the server sends back the current server time formatted according to
the sent format string (e.g. {"result":"2006-11-16 12:05:45.015 CEST"}).
You can change the format string. Errors are reported also.
Tomcat and a Java based web application framework are used on the backend side. The request is sent to /cms/page/gwt/plain/getTime (this URL will only handle POST requests).