Pathway/iTS Web Client Programming Manual (H06.03+, J06.03+)

Table Of Contents
SCREEN COBOL-to-Web Conversion Mappings
HP NonStop Pathway/iTS Web Client Programming Manual520270-003
5-2
Components of the Web Client
Components of the Web Client
For each SCREEN COBOL application, the converter generates these Java classes
and HTML files:
Main Java applet
Starting page
Initial page
Control page
Java classes for the program units
User HTML pages for the Screen Sections
Main Java Applet
The main applet is contained in a file named
initprog
_MAINAPP.java, where
initprog
is the Program Unit name specified in the INITPROG parameter of the
CONVERT command. If the APPNAME parameter is specified in the CONVERT
command, then the file name has the format appname.java. The main applet
contains the generic applet code, which acts as a container for individual program unit
classes. It starts an execution thread for the program units and retains the context
across program units during CALL processing. It also provides methods to be called
from HTML pages on completion of HTML events.
Starting Page
The starting page is an HTML page. This is the first application component to be
loaded by the client’s browser. This page defines a START button. When the user
clicks the START button, a new browser window is created and the Initial page is
loaded .
The name of the HTML file is derived from the user-specified INITPROG or
APPPNAME parameter followed by _START; hyphens in the user-specified parameter
are replaced with underscores (_) in the generated name. For example, if the name of
the INITIAL program unit is MY-SCOBOL-APP, the name of the generated starting
page is MY_SCOBOL_APP_START.html.
Initial Page
The initial page is an HTML page. This is the second application component to be
loaded by the client's browser. This page defines the frames on the browser window.
The name of the HTML file is derived from the user-specified INITPROG or APPNAME
parameter followed by _PAGE1; hyphens in the user-specified parameter are replaced
with underscores (_) in the generated name. For example, if the name of the INITIAL
program unit is MY-SCOBOL-APP, the name of the generated initial page is
MY_SCOBOL_APP_PAGE1.html.