Configuring and Managing Forms Services 4-39
4.7.5.2 Using Files Within the Jar File
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.
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.
This parameter accepts two different values:
■
documentBase The search path is relative to the documentBase directory. If no
value is specified for imageBase, then the value of documentBase is used.
■
codeBase The search path is relative to the codeBase directory, which gives the
ability to use Jar files. 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=frmall.jar, icons.jar
imageBase=codeBase
4.7.6 Search Path for Icons and Images
The icons and images search path depends on:
■
What you specify in your custom application file for the icons.
■
What you specified in the splashScreen and background parameters of your default Forms configuration file or HTML file for the images.
■
What you specify in the imageBase parameter in the Web Configuration page of Fusion Middleware Control for the file or HTML file for both icons and images.
Forms Services searches for the icons depending on what you specify. This example assumes:
■
host is the computer name.
■
DocumentBase is the URL pointing to the HTML file.
■
codebase is the URL pointing to the location of the starting class file as specified in the formsweb.cfg file or HTML file.
■
mydir is the URL pointing to your icons or images directory.
4.7.6.1 DocumentBase
The default search paths for icons and images are relative to the DocumentBase. In this case, do not specify the imageBase parameter:
Table 4–21 Search Paths for Icons
Location Specified Search path used by Forms Services
default http:hostdocumentbase
iconpath=mydir specified in your
application file http:hostdocumentbasemydir
relative path
4-40 Forms Services Deployment Guide
4.7.6.2 codebase
Use the imageBase=codebase parameter to enable the search of the icons Table 4–23
and images Table 4–24
in a Jar file:
4.8 Enabling Language Detection
Oracle Forms architecture supports deployment in multiple languages. The purpose of this feature is to automatically select the appropriate configuration to match a users
preferred language. In this way, all users can run Oracle Forms applications using the same URL, yet have the application run in their preferred language. As Oracle Forms
iconpath=mydir specified in your
application file http:hostmydir
absolute path
Table 4–22 Search Paths for Images
Location Specified Search Path Used by Forms Services
file.gif specified, for example, in formsweb.cfg
as splashscreen=file.cfg http:hostdocumentbasefile.gif
mydirfile.gif http:hostdocumentbasemydirfile.gif
relative path mydirfile.gif
http:hostmydirfile.gif absolute path
Table 4–23 Icon Search Paths Used by Forms Services
Location Specified Search Path Used by Forms Services
default http:hostcodebase or root of the Jar file
iconpath=mydir specified in your
application file http:hostcodebasemydir or in the mydir directory in
the Jar file relative path
iconpath=mydir specified in your
application file http:hostmydir
absolute path No Jar file is used.
Table 4–24 Image Search Paths Used by Forms Services
Location Specified Search Path Used by Forms Services
file.gif http:hostcodebasefile.gif or root of the Jar file
mydirfile.gif specified in your HTML
file http:hostcodebasemydirfile.gif or in the mydir
directory in the Jar file relative path
mydirfile.gif specified in your HTML
file http:hostmydirfile.gif
absolute path No Jar file is used.
Table 4–21 Cont. Search Paths for Icons
Location Specified Search path used by Forms Services