GuestBookApplet
about
The GuestBookApplet is a client/server guestbook system that can be used on any page.
You can see the Applet running on my homepage.
This page includes a screenshot of the applet, a short description of how it works and the source code.
The GuestBookApplet has been rated as an useful and cool Applet by the Gamelan Java directory team.
|
|
autor
Thomas Koch
screenshot
technical information
After the GuestBookApplet is loaded the user can enter its name and entry that shall appear in the guestbook.
When the "Add Entry to GuestBook" button is pressed, the name and entry is send to the GuestBookServer.
The GuestBookServer adds this data to the guestbook and returns a list of all current entries in the guestbook.
After receiving these entries, the applet displays the guestbook entries in a list widget. The user can then press
the "Update GuestBook" button to query the GuestBookServer again for an updated view of the guestbook.
The GuestBookServer must run on the machine where the applet code is loaded from. When starting the GuestBookServer you
must specify a file name for the guestbook and a password for (remote) guestbook administration. You may also specify the
port where the server should run (defaults to port 8888). The server is able to read a guestbook from a file as well as to
write a guestbook to a file. The file is stored in HTML format (.html-extension) and can be used to give an alternative view
of the guestbook (e.g. to users without Java-tized browsers). You may have a look at an
example GuestBook. The password is used to trigger the GuestBookServer to write the current
guestbook to the specified file. This is achieved by entering the name "SAVE" and the according password as entry.
source code
The source code can be downloaded as compressed tar-chive or as
zip-file.
go back to my Home page
or back to my Java Information page
Thomas Koch, July 1996