Académique Documents
Professionnel Documents
Culture Documents
Each time you use an icon or an image (for a splash screen or background), an
HTTP request is sent to the Web server. To reduce the HTTP roundtrips
between the client and the server, you have the ability to store your icons and
images in a Java archive (JAR) file. Using this technique, only one HTTP
roundtrip is necessary to download the JAR file.
The SunSoft JDK comes with an executable called jar. This utility enables you
to store files inside a Java archive. For more information, see
www.java.sun.com.
For example:
jar -cvf myjar.jar Splash.gif Back.gif icon1.gif
This command store three files (Splash.gif, Back.gif, icon1.gif) in a single JAR
file called myjar.jar.
The default search path for the icons and images is relative to the
DocumentBase. However, when you want to use a JAR file to store those files,
the search path must be relative to the CodeBase directory, the directory which
contains the Java applet.
If you want to use a JAR file to store icons and images, you must specify that
the search path is relative to CodeBase using the imageBase parameter in the
formsweb.cfg file or HTML file.
In this example, we use a JAR file containing the icons and we specify that the
search should be relative to CodeBase. If the parameter "imageBase" is not set,
the search is relative to DocumentBase and the icons are not retrieved from the
JAR file.
For example (formsweb.cfg):
archive=f90all.jar, icons.jar
imageBase=codebase
• What you specify in your custom application file (for the icons).
• What you specified in the SplashScreen and Background parameters of
your formsweb.cfg file or HTML file (for the images).
• What you specify in the imageBase parameter in your formsweb.cfg file
or HTML file (for both icons and images).
Forms Services searches for the icons depending on what you specify. This
example assumes :
DocumentBase
The default search path is relative to the DocumentBase. In this case, you do
not need to specify the imageBase parameter:
(relative path)
/mydir/file.gif http://host/mydir/file.gif
(absolute path)
CodeBase
Table 3-4 Icons and Images Search Paths Used by Oracle9iAS Forms
Services