Kbase 17499: Where to put java class files for WebSpeed(2.x) applications
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/10/1998 |
|
Where to put java class files for WebSpeed(2.x) applications
INTRODUCTION
============
This knowledgebase entry describes a few different ways to
reference Java applets in WebSpeed applications and where to
put the Java class files.
RELATIVE TO WEB SERVER DIRECTORY
================================
One way to reference java applet class files is relative to
your Web server directory. If your java class files are in a
subdirectory from the Web server root directory you would
use that directory for the CODEBASE part of the APPLET tag.
For example, with IIS on NT, the default directory is
drive:\Inetpub\wwwroot
If a directory is created for the java class files,
drive:\Inetpub\wwwroot\javafiles, the following would be used
in your HTML:
<APPLET CODEBASE="/javafiles" CODE="ColorArcs.class"
WIDTH=300 HEIGHT=400>
</APPLET>
HARD-CODING PATH
================
Another way to do this is to hard-code the full path for the
location of the java class files, which is not recommended should the
application be deployed on another machine. For example, if your
java class files are in your working directory (c:\WEBSPEED\WRK)
your would use the following in your HTML:
<APPLET CODEBASE="c:\WEBSPEED\WRK" CODE="ColorArcs.class"
WIDTH=300 HEIGHT=400>
</APPLET>
REFERENCES TO WRITTEN DOCUMENTATION
===================================
WebSpeed Developer's Guide - Moving Application Files to Appropriate
Directories
Progress Software Technical Support Note # 17499