Some Possible Ways to Work with the API

The target file is opened depending on the application associated with it. The system prompts for an application name if one is not given.

  • Create a text file with the TEXT_IO command on a file server accessible to the client, and then use web.show_document ('file://...') to access the file. The file is opened with the application associated with the extension of the file on the client PC. When no associated application is named, the system prompts for one. An example of this file protocol method is in the Get Image procedure.

  • Create a text file on a Web server with the TEXT_IO command and access the file with web.show_document ('http://...'). The file is opened with the application associated with the extension of the MIME type that is associated with the file on the Web server. When no associated application is named, the system prompts you. The Get Image procedure has an example of this method.

    For Oracle WebDB listener, you can view, and add, MIME type extensions through the MIME TYPE option under the Listener mode.

  • Follow a similar method to the preceding one, but create the text file in the same directory as the file opabasejini.htm, specifying the name of the Web server. The file opabasejini.htm is stored in oracle_home/html. The value of oracle_home can be derived by using tool_env.getvar('oracle_home',...). Then, use web.show_document ('http://...'). The advantage of this method is that you do not have to create another virtual directory, and you do not have to specify the virtual directory in web.show_document.

  • Call a form that starts up a Java bean.