Embedding a Java Applet inside a Daisy document [2005-09-22]
Live example
This page contains an example Java Applet that uses Swing !
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
Overview
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.
Description
- Insert an appropriate include tag in a Daisy simple document ...
-

- At the document root of your web server create the following directory ...
- mkdir -p applet/example_000/
- In the example_000/ directory, create an HTML file taking note of the Java Applet tag code and codebase ...
-
<html> <body> <applet code="Example_000" codebase="/applet/example_000" width="120" height="80"> Your browser doesn't support Java applets </applet> </body> </html> - Place the Java Applet source code Example_000.java in the example_000/ directory.
- Compile the Java Applet ...
-
javac -source 1.2 -target 1.1 Example_000.java
- 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 (1)

<strong><a href="http://www.wanjieinternational.com/">Thiacloprid</a></strong><br>
<strong><a href="http://www.wanjieinternational.com/inorganic.html">Phosphorous acid</a></strong><br>
<strong><a href="http://www.wanjieinternational.com/inorganic.html">Polyphosphoric acid</a></strong><br>
<strong><a href="http://www.wanjieinternational.com/inorganic.html">Monopotassium phosphite</a></strong><br>
<strong><a href="http://www.wanjieinternational.com/inorganic.html">Dichlorotrifluoroethane</a></strong><br>