Preparing the Example
You can find the code here. This package contains the files ready to be installed onto your Web server gathered in the directory apps (but don't forget to read the Web server section following) that you should copy under your document root. The other directory contains the Java code and the compiled classes. If you wish to build the example on your machine, you have to create a JAR file containing the Example class, as provided in the apps directory.
After you have copied the apps directory under your Web server document root and added a new MIME type, as discussed following, you are ready to run the example.