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

iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
D-1
D
JavaScript Utility Driver (jud)
The JavaScript Utility Driver (jud) for NonStop TUXEDO Servers is an ATP script
that implements the NonStop TUXEDO ud utility. jud shows how to use ATP to
communicate with NonStop TUXEDO servers and is also useful as an application
prototyping and testing tool.
When you use jud, you specify the NonStop TUXEDO field table and view names and
select the fields to be send to the server. jud builds a transaction message, sends the
request to a NonStop TUXEDO application, and retrieves the reply.
jud demonstrates the use of the atp.fml_field, atp.fml_table,
atp.fml_buffer, and atp.transaction objects.
This appendix contains the following subsections:
Installing jud on page D-1
Running jud on page D-1
Specifying the Environment on page D-1
Building the Request Buffer on page D-2
Displaying the Reply Message on page D-3
Installing jud
The jud utility is installed automatically when you run the ATP installation script. By
default, jud uses the standard TUXEDO bankapp application. You must create and
populate any other field tables or applications you wish to use.
Running jud
To run jud, navigate to the JavaScript Utility Driver from the ATP home page
/examples/index.html.
Specifying the Environment
jud displays an HTML form on which you enter the following information:
Service name. Choose the name of the desired TUXEDO service from the scroll list,
or type the name of a service not in the list. This item is required.
Client name. Enter the client name in the text entry field, as specified in the
NonStop TUXEDO configuration. This item is optional.
TUXEDO directory. Enter the full pathname of the directory in the text entry field.
If you specified a value in the httpd.config file, as described in ATP in the
WebServer Configuration File on page 2-8, jud displays that value as the default
for this item. This item is required.