Creating a Web Page That Invokes the AppletAt a minimum, the page must include the APPLET tag that invokes the applet. For example, the following page includes little else but the APPLET tag. The example’s APPLET tag specifies the c-treeJDBCApplet.class and ctreeJDBCTest.jar files from the preceding sections, as well as class-name and connection parameters to pass to the applet.
<head> <title>Test</title> </head> <body> <p> Here, in all its glory, is the ctreeJDBCApplet test applet! <center> <applet code="c-treeJDBCApplet.class" archive="c-treeJDBCTest.jar" width=500 height=400> <param name=Driver value="ctree.jdbc.ctreeDriver"> <param name=URL value="jdbc:ctree:6597@mydomain:ctreeSQL"> <param name=User value="ADMIN"> <param name=Password value="dummy"> </applet> </center> </body> </html> |
|||