You want to use the Java Plug-in HTML Converter tool to generate the tags for embedding an applet.
Use the HTML Converter tool within htmlconverter.jar, which is located in the lib directory of the directory where you have the Java SDK installed.
A busy developer can let the Java Plug-in HTML Converter tool produce the HTML tags that are responsible for loading Java applets. The Java Plug-in is a Java-based tool that allows applets to be run in the Sun Microsystems Java 2 runtime environment, rather than within the web browser's Java runtime environment. The Java Plug-in is installed on your machine when you install the JRE, including the installation of the SDK.
The HTML Converter tool will
convert a specified JSP
file that contains an
HTML tag, replacing the
tag with a more complex
tag collection that
allows most browsers to
load the Java applet. The
Converter leaves the rest
of your JSP code
untouched; it only
replaces the JSP's
Here is how to use the HTML Converter tool:
Example 17-3. A JSP with an applet tag
<%@ taglib uri="http://java.sun.com/jstl/core" ...