outputFormat property
Indicates the format of the output dataset.
Syntax
Set: Gateway.setoutputFormat(dsFormat)
Get: dsFormat = Gateway.getoutputFormat()
Applies to
Gateway class.
Data type
String. The format of the output dataset. Vaild values are "Browser" and "InfoBus."
Usage
For MIME types text/html and text/plain, this property describes what to do with the server output. If the format is "Browser", the result output is shown in the browser. The "Browser" selection is only available on compliant browsers. If the format is "Infobus", server output is collected in a string which is placed on the InfoBus.
If the data returned from the server is not text/html or text/plain, the server output is placed on the InfoBus as a generic Object (using the InfoBus class SimpleDataItem). Another applet on the InfoBus that is listening for the data item can render the object according to its format.
If the "Browser" HTML format is selected, and the browser is not capable of supporting the Javascript protocol, the output is placed on the InfoBus in the "Infobus" format.
Example
outputFormat property example
See also
CGI gateway applet
OutputDataSetName property