4.9.3 Web Server Considerations
When you use the Jolt classes in a Java applet, the Jolt Server must run on the same machine as the Web server that downloads the Java applet unless you install Jolt Relay on the Web server.
When a webmaster sets up a Web server, a directory is specified to store all the HTML files. Within that directory, a sub directory named “classes” must be created to contain all Java class files and packages. For example:
<html-dir>/classes/bea/jolt
Or, you can set the CLASSPATH
to include the jolt.jar
file
that contains all the Jolt classes.
Note:
You can place the Jolt classes sub directory anywhere. For convenient access, you may want to place it in the same directory as the HTML files. The only requirement for the Jolt classes sub directory is that the classes must be made available to the Web server.The HTML file for the Jolt applet should refer the codebase to the jolt.jar
file or the classes
directory. For example:
/export/html/
|___ classes/
| |_____ bea/
| | |______ jolt/
| | |_____ JoltSessionAttributes.class
| | |_____ JoltRemoteServices.class
| | |_____ ...
| |_____ mycompany/
| |________ app.class
|___ ex1.html
|___ ex2.html
The webmaster may specify the “app” applet in ex1.html
as:
<applet codebase=“classes” code=mycompany.app.class width=400 height=200>
Parent topic: Deploying and Localizing Jolt Applets