Home | Previous Page | Next Page   Getting Started >

Using the Driver in an Applet

You can use IBM Informix JDBC Driver in an applet to connect to an Informix database from a Web browser. The following steps show how to specify IBM Informix JDBC Driver in the applet and how to ensure that the driver is correctly downloaded from the Web server.

To use IBM Informix JDBC Driver in an applet
  1. Install ifxjdbc.jar in the same directory as your applet class file.
  2. Specify ifxjdbc.jar in the ARCHIVE attribute of the APPLET tag in your HTML file, as shown in the following example:
    <APPLET ARCHIVE=ifxjdbc.jar CODE=my_applet.class
    CODEBASE=http://www.myhost.com WIDTH=460 HEIGHT=160>
    </APPLET>
Important:
Some browsers do not support the ARCHIVE attribute of the APPLET tag. If this is true of your browser, unpack and install the ifxjdbc.jar file in the root directory of your Web server. If your browser also does not support the JDBC API, you must install the class files included in the java.sql package in the root directory of the Web server as well. See your Web server documentation for information on installing files in the root directory.

Because unsigned applets cannot access some system resources for security reasons, the following features of IBM Informix JDBC Driver do not work for unsigned applets:

Tip:
You can enable these features for unsigned applets using Microsoft Internet Explorer, which provides an option to configure the applet permissions.

To access a database on a different host or behind a firewall from an applet, you can use the Informix HTTP proxy servlet in a middle tier. For more information, see Using an HTTP Proxy Server.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]