iTP Active Transaction Pages (iTP ATP) Programmer's Guide

Introduction
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
1-4
Architecture
ATP parses the .atp page and executes any embedded server-side scripts. These scripts
are identified by special HTML tags: the same tags used by Netscape for their
JavaScript products. For information about the tags, see Section 3, ATP Web Page and
Script Structure.
The atp server class has the following internal components:
The JavaScript language interpreter (from Netscape).
An HTML parser to identify imbedded server-side scripts and to expand server-side
include files. Include files enable commonly used scripts to be shared by
many pages.
JavaScript language objects to support interfaces with NonStop SQL, NonStop
TS/MP, NonStop TUXEDO, and the NonStop TCP/IP sockets interface.
NonStop SQL interface objects allow direct access to NonStop SQL databases
from web pages.
NonStop TS/MP and Pathway interface objects allow
°
Composition and decomposition of application messages
°
Data conversion between JavaScript data types and C and COBOL data types
°
Use of Data Definition Language (DDL) dictionaries, which NonStop TS/MP
customers traditionally use to define application-message layouts
°
Definition of transaction boundaries using NonStop TM/MP
°
Pathsend communication with application servers
NonStop TUXEDO interface objects allow
°
Use of NonStop TUXEDO FML field tables to define FML and FML32 buffers
°
Communication with NonStop TUXEDO request/response servers (but not
conversational servers). ATP objects support both FML and view buffers
The sockets interface object allows web pages to act as sockets clients to TCP/IP
server applications. For example, a web page can send an SMTP message or HTTP
request or act as a Telnet client.
To the JavaScript author, the objects that provide these capabilities appear to be built
into the JavaScript language.
Note. ATP does not support every kind of server-side include described in the iTP Secure
WebServer System Administrator’s Guide. For information about server-side includes
supported by ATP, see Section 3, ATP Web Page and Script Structure.