PicoWeb Sample Project JAVAHITS ------------------------------- This PicoWeb project shows how to use a Java applet (supplied by the PicoWeb) to gather data from the PicoWeb using TCP/IP. Every second an analog clock in a graphical window is updated. At the same time the date and time (in digital format) and the contents of a "hit counter" in the PicoWeb are also updated. The PicoWeb hit counter data is read from the PicoWeb by the applet. This data from from a simple PicoWeb HTML page. This Web page calls a PicoWeb CGI routine that bumps the 16-bit hit counter and then supplies the counter's value as ASCII text to the returned HTML stream. The PicoWeb "file system" holds three files: the "home page" (which loads the Java applet), the HTML page which supplies the hit counter, and the Java byte-codees for the Java applet. The Java applet byte-codes are stored in the file "hits.class". The Java code used to produce this file can be found in the source file "hits.java". This can be compiled into Java byte-codes using Sun Microsystem's free Java Development Kit (JDK). See http://java.sun.com/products/jdk/1.1/. Note: In order to view this page with a Web browser, the Web browser must have Java enabled.