Applets are instances of a Java class called Applet and its subclasses. They can be embedded in HTML pages using the following tag:
-
<app class="MyApplet" [other optional attributes]>
|
where MyApplet is the name of a user-developed applet class, compiled by javac into MyApplet.class and placed in the subdirectory classes vs the virtual path of the HTML page.
|
If the HTML page has the URL address:
-
PageURL = http://server/path/file.html
|
then the file MyApplet.class pointed by the applet tag has the URL:
-
AppURL = http://server/path/classes/MyApplet.class
|