HP e3000 Web Server CGI Programming (November 2008)

Therefore, the CGI Web program must contain code to keep track of the user, all requests associated
with that user and what information
was sent to the user to create the illusion of a "state"
environment.
Note:
It is beyond the scope of this paper to "teach" CGI programming. For more information or
tutorials on CGI, visit the following sites:
< http://hoohoo.ncsa.uiuc.edu/cgi >
< http://www.jmarshall.com/easy/cgi/ >
or Search for keyword "CGI" using any one of the popular search engines (Yahoo, Lycos etc.)
In addition, there are numerous books available on CGI programming in bookstore computer
sections.
Data access paradigms
Let's take a look at a "traditional" HP 3000 application. A traditional HP 3000 application is usually a
host/terminal-based Cobol application, using VPLUS to handle the communication with the user and
Image/SQL intrinsics to read/write data from and to the database.
Figure 3: Traditional HP 3000 Application
Now, let's look at that application in a Web environment. Note that the main application logic and
communication with the database has not changed. What has changed is the VPLUS calls. Also note
that for small to medium sized applications the application logic can be in the CGI program. The
diagram below demonstrates an architecture that will be effecient for medium to large sized
applications which need to scale.
Page
3
of
10
HP e3000 Web Server CGI Programming
11/13/2008
http://www.hp.com/cgi
bin/pf
new.cgi?IN=http://jazz.external.hp.com/papers/cgi
paper/c
...