|
Oracle® Application Server Forms Services Deployment Guide
10g (9.0.4) for Windows and UNIX Part No. B10470-02 |
|
|
|
|
This chapter contains the following sections:
When a user first starts an Oracle Forms application (by clicking a link to the application's URL), the baseHTML file is read by Forms Servlet. Any variables (%variablename%) in the baseHTML file are replaced with the appropriate parameter values specified in the formsweb.cfg file, and from query parameters in the URL request (if any).
You can easily modify the configuration files with Oracle Enterprise Manager Application Server Control as your needs change.
The Enterprise Manager Application Server Control user interface that is shipped with Forms Services is a Web-based tool that you launch from your default browser. The default URL is:
http://<machine.domain>:1810
|
Note: For information on how to launch Enterprise Manager, see the Oracle Enterprise Manager Advanced Configuration. |
For Forms Services, use the Web-based Enterprise Manager Application Server Control to:
Monitor metrics for an Forms Services instance. See Chapter 8, "Monitoring Forms Services Instances" for more information.
Monitor metrics for user sessions See Chapter 8, "Monitoring Metrics for User Sessions" for more information.
Allow or deny new user sessions. See Chapter 4, "Allowing New Users Sessions" and Chapter 4, "Disabling New User Sessions" for more information.
Terminate user sessions. See Chapter 4, "Terminating a User Session on a Forms Services Instance" for more information.
Configure parameters for a Forms Services instance. See Chapter 4, "Configuring Parameters with Application Server Control" for more information.
Configure Forms Trace and monitor trace metrics. See Chapter 7, "Configuring Forms Trace" and Chapter 7, "Monitoring Forms Services Trace Metrics" for more information.
Configure multiple environment files. See Chapter 4, "Configuring Environment Variables with Enterprise Manager" for more information.
Use available Forms Services utilities and runtime pooling. See Chapter 8, "Forms Services Utilities" and Chapter 8, "Tuning Oracle9iAS Forms Services Applications" for more information
By default, Enterprise Manager provides some information about Forms which allows you to centrally modify the configuration files. But you won't experience the full functionality that Enterprise Manager can provide for Forms unless you do the following:
In the Forms configuration file (formsweb.cfg) make sure the the following variable is set in the default section. You can do this either through EM, or manually on the server.
em_mode=1
This will let EM show user information for each running Forms application. Only sessions created after setting em_mode to 1 will be shown. By default, this value is 0, which is off.
In the Forms configuration file (formsweb.cfg) make sure the following variable is set. You can either set it in the default section or in a specific application section. As with step 1, you can set this variable using EM, or manually on the server.
allow_debug=true
This will let you turn tracing on and off within EM.
(Windows only) For the middle tier user that installed Oracle Application Server, you need to give them the "Log on as a batch job" privilege. Logon as either that user, or another user with administrator privileges. Select Administrative Tools in the Control Panel. Then select Local Security Settings| Local Policies | User Right Assignment. Add the username of the user who installed Oracle Application Server.
(Windows only) As the user who installed Oracle Application Server or as a user with administrator privileges, bring up the Windows Services, which can be found in the Control Panel. Find the the Oracle/xxxxxx/ProcessManager service. Right-click it and choose Properties. In the Logon tab, make sure Allow service to interact with desktop is selected.
(Windows only) You will need to restart this service. Note that even after it is restarted, it can take up to several minutes for the changes to take effect in EM.
When you install Forms Services, the Oracle Universal Installer automatically edits Enterprise Manager Grid Control targets.xml file. The targets.xml file contains a list of all the services to be managed by Enterprise Manager.
The first time you use Enterprise Manager to monitor Forms Services, you must perform the following steps for each Forms Services instance to be monitored.
See the Enterprise Manager documentation for information on how to use the Application Server Control to access the Enterprise Manager Administration page for a node. (You will need to provide an administrator's username and password.)
To configure Enterprise Manager Grid Control to Manage Forms Services:On the Agent Administration page, all services that are being monitored are listed under the Agent Monitored Targets heading.
Select the radio button next to the Forms instance to be configured for Enterprise Manager.
Click Edit.
Provide the <ORACLE_HOME> and URL for the Forms instance.
Click OK.
|
Note: See the Enterprise Manager help system for more information about other tasks that you can complete on this page. |
To perform most management tasks for a Forms server using Application Server Control, you start by navigating to the Forms Home page for the Forms Server in Application Server Control.
To navigate to the Forms Home page for a Forms Server in the Application Server Control:Using Application Server Control, navigate to the home page for the application server that contains Forms server you want to manage.
For introductory information about using the Enterprise Manager Application Server Control, see "Introduction to Administration Tools" in the Oracle Application Server 10g Administrator's Guide.
In the System Components section on the application server home page, click the link for the Forms server that you want to manage. This displays the Forms home page for the Forms server in the Application Server Control.
Use the Configuration page in Application Server Control to configure Forms Services. This page manages all changes in the formsweb.cfg file for you.
|
Note: If you manually edit any of the configuration or environment files, you'll need to restart Enterprise Manager as well as restart all Distributed Configuration Management (DCM) processes so that Enterprise Manager can read all changes. If you do not restart Enterprise Manager as well as DCM processes, any changes that you make through Oracle Enterprise Manager will overwrite any manual changes you've made to these files. These DCM processes include:
|
|
Note: You should backup the formsweb.cfg and default.env files before editing them with Enterprise Manager. |
Start the Application Server Control.
From the Application Server Control main page, select the link to the Oracle9iAS Forms Services instance that you want to configure.
From the Forms Services instance, select the Configuration tab.
Select Forms Web Configuration from the View pulldown list and click Go.
To create a new section in the formsweb.cfg file, click Create New Section and enter a name for this section on the next page
To delete a section in the formsweb.cfg file, click the radio button next to the section to be deleted, then click Delete and confirm the deletion on the next page.
|
Note: As with most Web applications, it is easy to lose unsaved changes by switching pages. Be sure to save any changes you make through Application Server Control to Forms configuration or environment files before proceeding to other pages.The length of time it takes for changes to be saved is affected by the number of lines you have changed. For example, an additional fifty lines of comments will take longer to save than just the deletion of a single entry. |
For a description and the location of the Forms Servlet configuration file (formsweb.cfg), see Chapter 3, "formsweb.cfg".
The four baseHTML parameters should point to appropriate files. Typically, the following values and their parameters should appear in the default configuration section:
Table 4-1 Default Configuration Parameters that Specify Files
| Parameter | Value |
|---|---|
| baseHTML | base.htm |
baseHTMLie
|
baseie.htm |
baseHTMLJinitiator
|
basejini.htm |
baseHTMLjpi
|
basejpi.htm |
envFile
|
default.env |
All of these parameters specify file names. If no paths are given (as in this example), the files are assumed to be in the same directory as the Forms Servlet configuration file (formsweb.cfg), that is <ORACLE_HOME>/forms90/server.
You create new configuration sections from the Configuration tab of Application Server Control, which creates the named configurations in the formsweb.cfg file. These configurations can be requested in the end-user's query string of the URL that is used to run a form.
To create a new configuration section:Start the Enterprise Manager Application Server Control.
From the Application Server Control main page, select the link to the Forms Services instance that you want to configure.
From the Forms Services instance, select the Configuration tab.
Click Create New Section at the top of the Configuration tab.
The Forms New Section Name page appears.
Enter a name for your new configuration, and click OK.
If you enter a description of your new section, make sure you save it clicking Apply before editing the section and adding parameters.
For example, to create a configuration to run Forms in a separate browser window with a "generic" look and feel, create a new section and add the following parameters from Table 4-2:
Table 4-2 Sample Parameters to Add to a New Configuration Section
| Parameter | Value |
|---|---|
| forms | <module> |
| separateFrame | True |
| lookandfeel | Generic |
Your users would type the following URL to launch a form that uses the "sepwin" (or whatever name you applied) configuration:
http://server:port/forms90/f90servlet?config=sepwin
You can also use Application Server Control to create named configuration sections (see Chapter 7, "Tracing and Diagnostics").
See Appendix B, "Sample Configuration Files" for other examples of special configurations.
You can make a copy of a named configuration for backup purposes, or create new configuration sections from duplicates.
To duplicate a named configuration:Select the radio button next to the section to be duplicated.
Click Duplicate.
On the next page, enter a new, unique name for the duplicated section and click OK.
A new section with exactly the same parameters, parameter values and comments as the section you are duplicating is created.
When you delete a named configuration, you delete all the information within it. If you only want to delete specific parameters, select the radio button next to the section name and click Edit.
To delete a named configuration:Start the Enterprise Manager Application Server Control.
From the Application Server Control main page, select the link to the Forms Services instance that you want to configure.
From the Configuration, select the radio button next to the configuration section you want to delete.
Click Delete.
The Confirmation page appears.
Click OK.
The configuration section is deleted.
Application Server Control returns to the Forms Configuration tab and displays the remaining configurations at the bottom of the page.
Use Application Server Control to manage parameters within a named configuration. You can add, edit, or delete parameters from the Edit Section page of Application Server Control.
To edit a parameter in a configuration section:From the Configuration tab of Enterprise Manager Application Server Control, select the radio button next to the configuration section to which you want to edit a parameter.
Click Edit at the top of this page.
The Edit Section page appears for that selected configuration.
Select the radio button next to the parameter you want to edit.
Make your changes in the text fields.
Click Apply.
Your changes are saved.
From the Configuration tab of Application Server Control, select the radio button next to the configuration section to which you want to add a parameter.
Click Edit at the top of this page.
The Edit Section page appears for that selected configuration.
Enter a name and value for the new parameter and click Add New Parameter.
The Forms Configuration Section Parameters page refreshes and displays the new parameter.
Add a description for the new parameter, and click Apply.
To return to the Forms page, click Forms in the breadcrumb trail.
To edit a configuration section, select the radio button next to it and click Edit at the top of this page.
The Edit Section page appears for the selected configuration.
Select the radio button next to the parameter you want to delete.
Click Delete.
Confirm the deletion on the Confirm page that appears.
The parameter is deleted from the configuration section.
Table 4-3, "System Default Configuration Parameters" describes the default forms configuration parameters in the formsweb.cfg file. For additional information on single sign-on parameters, see Chapter 6, "Enabling Single Sign-On for an Application".
These sections include:
These parameters control the behavior of the Forms Servlet. They can only be specified in the servlet configuration file (formsweb.cfg) and cannot be specified as URL query parameters.
Table 4-3 System Default Configuration Parameters
All parameters from here on match variables (%parameterName%) in the baseHTML file. These variables are replaced with the parameter values specified in the URL query string, or failing that, in the formsweb.cfg file. See Chapter 3, "Specifying Special Characters in Values of Runform Parameters" for information about how runform handles certain special characters that are specified in runform parameter values.
Table 4-4 Runform Parameters (serverArgs Parameters)
| Parameter | Required / Optional | Parameter Value |
|---|---|---|
escapeparams
|
optional | Set this parameter to false if you want runform to treat special characters in runform parameters as it did in releases prior to 9.0.4.
|
heartBeat
|
optional | Use this parameter to set the frequency at which a client sends a packet to the server to indicate that it is still running. Define this integer value in minutes or in fractions of minutes, for example, 0.5 for 30 seconds. The default is two minutes.
If the heartbeat is less than |
form
|
required | Specifies the name of the top level Forms module (fmx file) to run. |
userid
|
optional | Login string. For example: scott/tiger@ORADB.
|
otherparams
|
optional | This setting specifies command line parameters to pass to the Forms runtime process in addition to form and userid.
Default is:
Note: Special syntax rules apply to this parameter when it is specified in a URL: a + may be used to separate multiple name=value pairs (see Section 3.2.4, "Specifying Special Characters in Values of Runform Parameters" for more information). For production environments, in order to provide better control over which runform parameters end users can specify in a URL, use the |
debug
|
optional | Allows running in debug mode.
Default value is |
buffer
|
optional | Supports running and debugging a form from the Builder. Sub argument for otherparams
Default value is |
debug_messages
|
optional | Supports running and debugging a form from the Builder. Sub argument for otherparams
Default value is |
allow_debug
|
optional | When set to true, all admin functions from the forms90/f90servlet/admin screen are activated. forms90/f90servlet/xlate runs Forms Trace Xlate on a specified trace file. This parameter must be set to true before trace logs can be viewed from the Forms EM User Sessions screen.
The default value is |
array
|
optional | Supports running and debugging a form from the Builder.
Default value is |
query_only
|
optional | Supports running and debugging a form from the Builder.
Default value is |
quiet
|
optional | Supports running and debugging a form from the Builder.
Default value is |
render
|
optional | Supports running and debugging a form from the Builder.
Default value is |
host
|
optional | Supports running and debugging a form from the Builder.
Default value is |
port
|
optional | Supports running and debugging a form from the Builder.
Default value is |
record
|
optional | Supports running and debugging a form from the Builder.
Default value is |
tracegroup
|
optional | Supports running and debugging a form from the Builder.
Default value is |
log
|
optional | Supports running and debugging a form from the Builder.
Default value is |
term
|
optional | Supports running and debugging a form from the Builder.
Default value is |
em_trace
|
For internal use only. |
|
For security reasons these may not be set using URL query parameters.
Table 4-5 HTML Page Parameters
All of the following are specified in the baseHTML file as values for object or applet parameters. For example: <PARAM NAME="serverURL" VALUE="%serverURL%">
Table 4-6 Applet or Object Parameters
Table 4-7 Parameters for JInitiator
Table 4-9 Enterprise Manager Configuration Parameters
Table 4-10 Enterprise Manager Configuration Parameters
Use the Environment tab of the Enterprise Manager Application Server Control page to manage Environment Variables. From this page, you can add, edit, or delete environment variables as necessary.
The environment variables such as PATH, <ORACLE_HOME>, and FORMS90_PATH for the Forms runtime executable (ifweb90.exe on Windows and f90webm on UNIX) are defined in the Environment tab. The Listener Servlet calls the executable and initializes it with the variable values provided in the environment file, which is <ORACLE_HOME>/forms90/server/default.env by default.
Any environment variable that is not defined in that page is inherited from the servlet engine (OC4J). The environment file must be named in the envFile parameter in the Default section of the Forms Web Configuration page.
A few things to keep in mind when customizing environment variables are:
Environment variables may also be specified in the Windows registry. Values in the environment file override settings in the registry. If a variable is not set in the environment file, the registry value is used.
You will need administrator privileges to alter registry values.
You do not need to restart the server for configuration changes to take effect.
Environment variables not set in the environment file or Windows registry are inherited from the environment of the parent process, which is the servlet engine (OC4J).
|
Note: You cannot create or delete environment files through Enterprise Manager Application Server Control. Environment files must be created manually in<ORACLE_HOME>/forms90/server with a .env extension.
Likewise, environment files cannot be deleted from EM. For a new environment file to be picked up by Application Server Control and for a deleted one to disappear you will need to restart the Enterprise Manager processes:
|
Table 4-11, "Default Environment Variables" describes important environment variables that are specified in default.env:
Table 4-11 Default Environment Variables
|
Note: On Windows, Oracle Application Server Forms Services reads Oracle environment settings from the Windows Registry unless they are set as environment variables. |
Oracle Application Server Forms Services contains features to help administrators manage user sessions, including:
By default, users can create new Forms sessions, which is indicated by the green traffic light. You can also enable users to create Forms sessions after you've enabled them.
To allow new Forms User sessions:From the Enterprise Manager Oracle Application Server Forms Services Overview page, click Enable (default).
The traffic light changes to green
From the Enterprise Manager Oracle Application Server Forms Services page, click Disable.
The traffic light changes to yellow.
When you press Disable, a new parameter is added to the default section of the formsweb.cfg file. The parameter is called allowNewConnections and pressing Disable sets it to false. When new user sessions are disabled, attempted connections will be directed to a URL identified by the formsweb.cfg parameter connectionDisallowedURL (default section) e.g:
connectionDisallowedURL=www.oracle.com connectionDisallowedURL=http://www.oracle.com
If no connectionDisallowedURL is specified then the following message will be displayed in the browser:
The Forms Servlet will not allow new connections. Please contact your System Administrator.
However, when you disable new user sessions, existing forms sessions are unaffected and the OC4J instance remains up.
Start the Oracle Enterprise Manager Application Server Control.
Select the link to the Forms Services instance that has the user session to be terminated.
From the Overview page for the Forms Services instance, select the Session Details link.
Click the radio button next to the user session to be deleted.
Click Stop.
Provide the credentials in the dialog box that displays (the user name and password that is required is the same one that was used when Forms Services was installed).
Click OK.
The user session is deleted and the Runform instance is terminated.
Oracle Forms applications are Web deployed solutions that users access through a browser. Oracle Forms architecture allows Forms developers two ways to choose and configure how a Forms application runs. One option is to set the parameter and the value in the URL. The second option is to set the parameter and its value(s) in the configuration file, i.e. formsweb.cfg. The parameter that is set in the formsweb.cfg can be overridden by the parameter set in the URL.
|
Note: You manage therestrictedURLparams parameter through the Configuration page of Enterprise Manager Application Server Control.
|
A Forms administrator can override this default behavior, and give the Forms administrator full control over what parameter can be used in the URL.
Here are two scenarios to consider when deciding which parameters to allow or not allow in a URL. The first scenario is when an administrator just wants to restrict the usages of the USERID parameter in the URL that forces the end-user to always log in using the default login window. The second scenario is when an administrator would like to disable all parameters except a few, such as CONFIG=MyApp in a URL.
The parameter restrictedURLparams allows flexibility for the Forms administrator to consider any URL-accessible parameter in the formsweb.cfg file as restricted to a user. An administrator can specify this parameter in a named configuration section to override the one specified in the default configuration section. The restrictedURLparams parameter itself cannot be set in the URL.
Figure 4-1 is an example of how the restrictedURLparams parameter is defined in the [myApp] section to override the one set in the [default] configuration section:
By default, this user, scott, is not allowed to debug this Forms application, use Forms Trace, or edit records in it. In the myApp section, user scott is only forced to log in when accessing the application, and not allowed to debug it. He can now, though, work with Forms Trace and edit records through a URL for this application.
An administrator can use the restrictedURLparams parameter to redirect a user to an error page that lists the parameters the user is restricted from using (or allowed to use) for this application.
Consider creating your own HTML file templates (by modifying the templates provided by Oracle). By doing this, you can hard-code standard Forms parameters and parameter values into the template. Your template can include standard text, a browser window title, or images (such as a company logo) that would appear on the first Web page users see when they run Web-enabled forms. Adding standard parameters, values, and additional text or images reduces the amount of work required to customize the template for a specific application. To add text, images, or a window title, simply include the appropriate tags in the template HTML file.
See Chapter 3.2.4, "Specifying Special Characters in Values of Runform Parameters" for information about coding the serverArgs applet parameter.
In order to integrate graphics applications with your Oracle Forms applications, you must set the path definition in the Forms Servlet environment to include graphics as follows:
PATH=<ORACLE_HOME>/bin;<GRAPHICS6I_HOME>/bin
The path definition of the Forms Servlet environment, is taken from the path definition of the servlet container. The file or location where the path will be defined is different for different servlet containers.
For more information about graphics, see Oracle Forms Developer and Oracle Application Server Forms Services: Migrating Forms Applications from Forms6i and Deploying Graphics in Oracle9iAS Forms Services, available at Oracle Technology Network (OTN), http://otn.oracle.com/products/forms/.
This section explains how to specify the default location and search paths for icons and images. Additional information can be found at http://otn.oracle.com/products/forms.
When deploying an Oracle Forms application, the icon files used must be in a Web-enabled format, such as JPG or GIF (GIF is the default format).
By default, the icons are found relative to the DocumentBase directory. That is, DocumentBase looks for images in the directory relative to the base directory of the application start HTML file. As the start HTML file is dynamically rendered by the Forms Servlet, the forms90 directory becomes the document base.
For example, if an application defines the icon location for a button with myapp/<iconname>, then the icon is looked up in the directory forms90/myapp.
To change the default location, you can set the imageBase parameter to codebase in the Forms Web Configuration page of Enterprise Manager Application Server Control. Alternatively, you can change the default.icons.iconpath value of the Registry.dat file in the forms90/java/oracle/forms/registry directory.
Setting the imageBase parameter to codebase enables Oracle Forms to search the forms90/java directory for the icon files. Use this setting if your images are stored in a Java archive file. Changing the image location in the Registry.dat configuration file is useful if you want to store images in a central location independent of any application and independent of the Oracle Forms installation.
If an application uses a lot of custom icon images, it is recommended you store icons in a Java archive file and set the imageBase value to codebase. The icon files can be zipped to a Java archive via the Jar command of any Java Software Development Kit (Java SDK).
For example, the command jar -cvf myjar.jar *.gif zips all files with the extension .gif into an archive file with the name myico.jar.
In order for Oracle Forms to access the icon files stored in this archive, the archive needs to be stored into the forms90/java directory. Also, the name of the archive file must be part of the archive tag used in the custom application section of the formsweb.cfg file (for example, archive_jini=f90all_jinit.jar, myico.jar). Now, when the initial application starts, the icon files are downloaded to and permanently stored on the client until the archive file is changed.
|
Note: You do not need to deploy Oracle Forms default icons (for example, icons present in the default smart icon bar), as they are part of the f90all.jar file, |
If you want to add icon changes to the Registry.dat file used by your application, it is recommended that you make a copy of the existing Registry.dat file and edit the copied file.
To create a copy of the Registry.dat file:Copy the Registry.dat text file found in the <ORACLE_HOME>/forms90/java/oracle/forms/registry directory to another directory. This directory must be mapped to a virtual directory for your Web server (for example, /appfile).
Rename this new file (for example, myapp.dat).
Modify the iconpath parameter specifying your icon location:
default.icons.iconpath=/mydir or http://myhost.com/mydir
default.icons.iconpath=mydir
Modify the iconextension parameter:
default.icons.iconextension=gif
default.icons.iconextension=jpg
In a specific named configuration section in the formsweb.cfg file, modify the value of the serverApp parameter and set the value to the location and name of your application file.
For example:
[my_app] ServerApp=/appfile/myapp
(for an absolute path)
or
[my_app] ServerApp=appfile/myapp
(for a relative path, relative to the CodeBase directory)
Table 4-12 Icon Location Guide
| Icon Location | When | How |
|---|---|---|
| DocumentBase | Default. Applications with few or no custom icons. | Store icons in forms90 directory or in a directory relative to forms90. |
| Java Archives | Applications that use many custom icons | Set ImageBase to codebase, create Java archive file for icons, and add archive file to the archive parameter in formsweb.cfg.
|
| Registry.dat | Applications with custom icons that are stored in a different location as the Oracle Forms install (can be another server).
Useful if you need to make other changes to the Registry.dat file like font mapping. |
Copy Registry.dat and change ServerApp parameter in formsweb.cfg. |
When you deploy your applications, you have the ability to specify a splash screen image (displayed during the connection) and a background image file.
Those images are defined in the HTML file or you can use the Forms Web Configuration page in Enterprise Manager:
<PARAM NAME="splashScreen" VALUE="splash.gif"> <PARAM NAME="background" VALUE="back.gif">
The default location for the splash screen and background image files is in the DocumentBase directory containing the baseHTML file.
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 Java SDK comes with an executable called jar. This utility enables you to store files inside a Java archive. For more information, see http://www.javasoft.com.
For example:
jar -cvf myjar.jar Splash.gif Back.gif icon1.gif
This command stores 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.
This parameter accepts two different values:
DocumentBase The search path is relative to the DocumentBase directory. It is the default behavior.
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=f90all.jar, icons.jar imageBase=codebase
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 Web configuration or HTML file (for the images).
What you specify in the imageBase parameter in the Forms Web Configuration page of Enterprise manager 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 host 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.
The default search paths for icons and images are relative to the DocumentBase. In this case, you do not need to specify the imageBase parameter:
Table 4-13 Search Paths for Icons
| Location specified | Search path used by Forms Services |
|---|---|
| default | http://host/documentbase
|
iconpath=mydir
(specified in your application file) |
http://host/documentbase/mydir
(relative path) |
iconpath=/mydir
(specified in your application file) |
http://host/mydir
(absolute path) |
Table 4-14 Search Paths for Images
file.gif(specified, for example, in formsweb.cfg as splashscreen=file.gif)
|
http://host/documentbase/file.gif
|
|---|---|
mydir/file.gif
|
http://host/documentbase/mydir/file.gif
(relative path) |
/mydir/file.gif
|
http://host/mydir/file.gif
(absolute path) |
| file.gif
(specified, for example, in formsweb.cfg as |
http://host/documentbase/file.gif
|
Use the imageBase=CodeBase parameter to enable the search of the icons and images in a JAR file:
Table 4-15 Icon Search Paths Used by Forms Services
| Location Specified | Search Path Used by Forms Services |
|---|---|
| default | http://host/codebase or root of the JAR file
|
iconpath=mydir
(specified in your application file) |
http://host/codebase/mydir or in the mydir directory in the JAR file
(relative path) |
iconpath=/mydir
(specified in your application file) |
http://host/mydir
(absolute path) No JAR file is used |
Table 4-16 Image Search Paths Used by Forms Services
| Location Specified | Search Path Used by Forms Services |
|---|---|
| file.gif
|
http://host/codebase/file.gif or root of the JAR file
|
mydir/file.gif
(specified in your HTML file) |
http://host/codebase/mydir/file.gif or in the mydir directory in the JAR file
(relative path) |
/mydir/file.gif
(specified in your HTML file) |
http://host/mydir/file.gif
(absolute path) No JAR file is used. |
Oracle Forms architecture supports deployment in multiple languages. The purpose of this feature is to automatically select the appropriate configuration to match a user's 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 we do not provide an integrated translation tool, you must have translated application source files.
For each configuration section in the Forms Web Configuration page, you can create language-specific sections with names like <config_name>.<language-code>. For example, if you created a configuration section "hr", and wanted to create French and Chinese languages, your configuration section might look like the following:
[hr] lookAndFeel=oracle width=600 height=500 envFile=default.env workingDirectory=/private/apps/hr [hr.fr] envFile=french.env workingDirectory=/private/apps/hr/french [hr.zh] envFile=chinese.env workingDirectory=/private/apps/hr/chinese
When the Forms Servlet receives a request for a particular configuration (for example, http://myserv/servlet/f90servlet?config=hr) it gets the client language setting from the request header "accept-language". This gives a list of languages in order of preference. For example, accept-language: de, fr, en_us means the order of preference is German, French, then US English. The servlet will look for a language-specific configuration section matching the first language. If one is not found, it will look for the next and so on. If no language-specific configuration is found, it will use the base configuration.
When the Forms Servlet receives a request with no particular configuration specified (with no "config=" URL parameter, for example, http://myserv/servlet/f90servlet), it will look for a language-specific section in the default section matching the first language (for example, [.fr]).
For ease of use, to avoid duplication of common values across all language-specific variants of a given base configuration, only parameters which are language-specific to be defined in the language-specific sections are allowed. Four levels of inheritance are now supported:
If a particular configuration is requested, using a URL query parameter like config=myconfig, the value for each parameter is looked for in the langage-specific configuration section which best matches the user's browser language settings (for example in section [myconfig.fr]),
Then, if not found, the value is looked for in the base configuration section ([myconfig],
Then, failing that, in the language-specific default section (for example, [.fr]),
And finally in the default section.
Typically, the parameters which are most likely to vary from one language to another are "workingDirectory" and "envFile". Using a different envFile setting for each language lets you have different values of NLS_LANG (to allow for different character sets, date and number formats) and FORMS90_PATH (to pick up language-specific fmx files). Using different workingDirectory settings provides another way to pick up language-specific.fmx files.