Pathway/iTS Web Client Programming Manual (G06.24+)
SCREEN COBOL-to-Web Conversion Mappings
Compaq NonStop Pathway/iTS Web Client Programming Manual—520270-001
5-3
Control Page
Control Page
Each converted SCREEN COBOL application is managed through a control page. This
HTML page is loaded into a control frame that is created by the starting page. The
control page contains a MainApp applet. This page is not visible to the end user. It
remains active throughout the execution of the application.
The name of the control page is derived from the user-specified INITIAL program unit
followed by _CONTROL. For example, if the name of the INITIAL program unit is
MY-SCOBOL-APP, the name of the generated control page will be called
MY_SCOBOL_APP_CONTROL.html.
Java Classes for the Program Units
For each program unit, the converter creates a Java class. The name of the Java file for
the class is derived from the name of the program unit. The conversion mappings are
described under Mappings to Java Classes later in this section.
User HTML Pages for the Screen Sections
The Screen Section of the SCREEN COBOL program is converted into a set of HTML
pages. The conversion mappings are described under Mappings to User HTML Pages
later in this section.
Conversion Mappings
The following paragraphs describe how the various elements of a SCREEN COBOL
program are converted to elements of Java classes or user HTML pages.
Mappings to Java Classes
For each program unit in the SCREEN COBOL program, the converter creates a Java
class. The name of the Java file is derived from the name of the corresponding program
unit. The conversion mapping is as follows:
•
The Working-Storage section is converted to Java classes.
•
Each paragraph in the program unit is converted to methods within the Java class.
•
Input-output elements in the Screen Section are converted to ScreenField objects in
the Java class.
The Java code files are generated at the location specified by the JAVAVOL parameter in
the CONVERT command or at the Java location specified in the configuration file.
Conversion of Working-Storage Section
Each group-level item in the SCREEN COBOL program unit is represented as a nested
class within the Java class. Each such nested class implements the necessary methods
defined in the ScobolType base class in the Pathway/iTS Java import package, as