
![]()
![]()
![]()
![]()
![]() |
Simple
Hit Counter |
<Applet Tag>
| <APPLET CODE=Counter.class WIDTH=60 HEIGHT=20 ARCHIVE="Counter.jar"> <PARAM NAME="site" VALUE="http://localhost:8080/servlet/ServerCounter"> </APPLET> |
Parameters
site
The web address of your
java servlet, in this case the address as used by my local tomcat web server.
Instructions for
Use
Download ServerCounter.java
& Counter.jar.
Compile ServerCounter.java and install it on your java capable webserver.
Set the site parameter value to point to your servlet on the web server.
Make the width parameter of the applet equal to that of 15*the desired number
of digits you want displayed.
(So for 4 digits use a value of 60, for 5 use 75, etc., etc.).
Counter will update with each page hit.
![]()
Client Files
Download Counter.jar
Servlet Files
Download ServerCounter.java