Note: right-click or shift-click on the links to download
the associated file. All code is freely available for unrestricted use.
Remember that applets and the classes used by applets need to go in
the Web-accessible part of the server directory structure (i.e.,
with the HTML and JSP pages), whereas servlets and classes used
by servlets and JSP need to go under the WEB-INF/classes
directory.
ShowQueries.java
An applet that reads arrays of strings packaged inside
a QueryCollection and places them in a scrolling
TextArea. Uses the following files:
QueryCollection.java
The class that actually gets the strings over the network by means of
an ObjectInputStream via HTTP tunneling.
QueryGenerator.java
The servlet to which the query viewer applet communicates. In the
cwp package.
SendPost.java
An applet that reads firstName, lastName, and
emailAddress request parameters and sends them via
POST to the host, port, and URI specified. Uses the following two files: