Top
NetCOBOL V11.0 CGI Subroutines User's Guide
FUJITSU Software

2.2.3 Web Page for Processing Result Output

A Web page for processing result output is an HTML document with which the Web application execution results are returned to the WWW browser. Because response data can be directly returned from a Web application, the Web page for processing result output does not have to exist as a static file. However, when a Web page for processing result output does exist as a static file, return data is highly independent of the program, and flexibility and maintainability are improved. For example, the layout of processing result can be changed without recompiling the Web application.

The contents of the web page for processing result output can be dynamically changed and output.

When a static HTML document (that is, an HTML document whose output contents do not change according to the processing results) must be output, an HTML document that was created by a standard HTML creation tool can be used.

When a dynamic HTML document (that is, an HTML document whose output contents change according to the processing results) must be output, data can be dynamically changed and output by specifying an item name (conversion name) enclosed with "//COBOL//" on the processing result output Web page. Because all such data in the processing result output Web page can be replaced, even individual characters in the processing result output Web page can be changed as well as some tags such as the background color specification. See COBW3_PUT_HTML in Chapter 3, "Output of processing results."

A processing result page to be output can be divided into two or more HTML documents (e.g., title, text, and header documents) or can be combined with plain text.