Embedding a Java Applet inside a Daisy document [2005-09-22]

Live example

Example_000: Java Applet Test

This page contains an example Java Applet that uses Swing !

Your browser doesn't support Java applets

Compiled using JDK 1.5 for a target of JDK 1.2 or higher.
You may need to upgrade to the latest Java web browser plug-in version.

Java Applet source code: Example_000.java


The Daisy CMS restricts the allowed HTML mark-up tags within a Document's content. However, the include tag permits the inclusion of other HTML pages that are effectively unlimited in what they contain.

By careful choice of the directory path, refering URL and Java Applet codebase, it is simple to include a Java Applet (as above).

Now that modern browsers and the latest Java plug-in are available, it's possible to create and deploy very sophisticated interactive user interfaces ... delivered by the Daisy CMS.


  1. Insert an appropriate include tag in a Daisy simple document ...
    • image:example_000_include_tag
  2. At the document root of your web server create the following directory ...
    • mkdir -p applet/example_000/
  3. In the example_000/ directory, create an HTML file taking note of the Java Applet tag code and codebase ...
    • <html>
          <applet code="Example_000" codebase="/applet/example_000" width="120" height="80">
            Your browser doesn't support Java applets
  4. Place the Java Applet source code Example_000.java in the example_000/ directory.
  5. Compile the Java Applet ...
  6. Ensure that appropriate read access is enabled ...
    • chmod 444 *.html *.java *.class

Further thoughts

Given that the Daisy CMS has a powerful HTTP+XML based API, there is plenty of scope for creating user interfaces that interact directly with the Daisy Repository Server.

Copyright Notice

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License

Comments (0)