Bo Larsson's Internet Server Software

Bo Larsson's Internet Server Software
All Contents Copyright 1997-2020 by Bo Larsson - Send questions or comments to: bliss@seagull.net
Table of Contents
Last updated 18 Jan 97
Welcome!

Perl CGI Scripts

guestbook 970118 NEW!
classifieds 970115 NEW!
search 961211
table 961201
textrotate 961121
rotater 961119
navigate 961117
redirect 961111
pcounter 961110
mailsend 961110
yourhost 961110
youraddress 961110

Java Applets

jclock 961204 NEW!
jcounter 961114

Links to Other Sites

Fisher's CGI Talk NEW!
JemTek CGI C Library
Dream Catchers CGI Scripts
Web Engineer's Toolbox
cgi-lib.pl Home Page
Common Gateway Interface
CGI Made Really Easy
CGI Programmer's Reference
Matt's Script Archive
Netamorphix CGI Page
Selena Sol's Archive

jcounter 961114

view the java source

view the CGI perl source

view the Applet Tag

show me an example

What is it?

This applet is a page access counter implemented in java and perl. The applet opens a connection to a cgi script to retrieve the number of accesses and paints this number to its window. The cgi script written in perl takes one parameter, the page id. It reads the number of current accesses from a file, increments it, returns it to the calling java applet and updates the file with the new number. The perl script is a simple script using a file name based on the passed parameter to provide counters for multiple pages(based on the passed page id).

What does it demonstrate?

This example demonstrates the ability of a java applet on a page to communicate with a cgi script on the server.