86 lines
5.8 KiB
HTML
86 lines
5.8 KiB
HTML
|
<?xml version="1.0" encoding="UTF-8"?>
|
|||
|
<!DOCTYPE html
|
|||
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|||
|
<html lang="en-us" xml:lang="en-us">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|||
|
<meta name="security" content="public" />
|
|||
|
<meta name="Robots" content="index,follow" />
|
|||
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|||
|
<meta name="DC.Type" content="topic" />
|
|||
|
<meta name="DC.Title" content="Net.Data applications for the HTTP Server" />
|
|||
|
<meta name="abstract" content="This topic provides a general overview of Net.Data." />
|
|||
|
<meta name="description" content="This topic provides a general overview of Net.Data." />
|
|||
|
<meta name="DC.Relation" scheme="URI" content="rzaieprogramming.htm" />
|
|||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
|
|||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
|
|||
|
<meta name="DC.Format" content="XHTML" />
|
|||
|
<meta name="DC.Identifier" content="rzaieprognetdata" />
|
|||
|
<meta name="DC.Language" content="en-us" />
|
|||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|||
|
<!-- US Government Users Restricted Rights -->
|
|||
|
<!-- Use, duplication or disclosure restricted by -->
|
|||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|||
|
<title>Net.Data applications
|
|||
|
for the HTTP Server</title>
|
|||
|
</head>
|
|||
|
<body id="rzaieprognetdata"><a name="rzaieprognetdata"><!-- --></a>
|
|||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|||
|
<h1 class="topictitle1">Net.Data applications
|
|||
|
for the HTTP Server</h1>
|
|||
|
<div><p>This topic provides a general overview of Net.Data<sup>®</sup>.</p>
|
|||
|
<div class="important"><span class="importanttitle">Important:</span> Information
|
|||
|
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
|
|||
|
It is recommended that you install the latest PTFs to upgrade to the latest
|
|||
|
level of the HTTP Server for i5/OS. Some of the topics documented here are
|
|||
|
not available prior to this update. See <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
|
|||
|
<p>Net.Data is a server-side scripting engine that allows you to easily create
|
|||
|
dynamic documents using live data from a variety of sources such as relational
|
|||
|
and non-relational database management systems (DBMSs), including DB2<sup>®</sup> databases
|
|||
|
that can be accessed through DRDA<sup>®</sup>, files, and native applications written in programming
|
|||
|
languages such as RPG, Cobol, Java™, C, C++, and REXX. </p>
|
|||
|
<p>Net.Data operates on scripts called macros, which contains a series of
|
|||
|
statements that are defined by the Net.Data macro language. These statements
|
|||
|
can include standard HTML (or XML, etc.) and language environment-specific
|
|||
|
statements (for example, SQL statements) as well as macro directives. These
|
|||
|
statements act as instructions to the Net.Data macro processor, telling it
|
|||
|
how to construct the dynamic page. Net.Data interprets the statements to
|
|||
|
create dynamic Web pages with customized content based on input from the user,
|
|||
|
the current state of your databases, other data sources, existing business
|
|||
|
logic, and other factors that you design into your macro. The dynamic page
|
|||
|
that is generated can be rendered in a variety of formats. For example, HTML
|
|||
|
for browser clients, XML for browser and application clients, wireless markup
|
|||
|
language (WML) for wireless clients, and Excel for application clients. </p>
|
|||
|
<p>The Net.Data macro processor communicates with the HTTP Server through
|
|||
|
its CGI-BIN interface. The server uses TCP/IP to connect to the Internet.
|
|||
|
Like other CGI-BIN programs, Net.Data is typically stored in the server’s
|
|||
|
CGI-BIN directory. Net.Data is accessed when a URL received by the server
|
|||
|
refers to the Net.Data macro processor executable, <tt>DB2WWW</tt>, in the
|
|||
|
CGI-BIN directory. </p>
|
|||
|
<div class="p">When a URL is received by the server that refers to the Net.Data macro
|
|||
|
processor program, the server starts an instance of the macro processor. It
|
|||
|
then passes essential information, including the name of the requested macro
|
|||
|
and the section of the macro to use. The macro processor then: <ol><li>Reads and parses through the macro. </li>
|
|||
|
<li>Interprets all the macro statements.</li>
|
|||
|
<li> Dynamically builds the page. </li>
|
|||
|
<li>Sends the data to the HTTP server by writing to stdout.</li>
|
|||
|
</ol>
|
|||
|
</div>
|
|||
|
<p>The macro writer has complete control over what format the generated data
|
|||
|
is in (for example: HTML or XML). The macro processor imposes no restrictions.
|
|||
|
After the text is passed back to the server, the macro processor ends. The
|
|||
|
resulting text is passed to the client (or browser) where the user interacts
|
|||
|
with it. Further requests from this user or any other user will result in
|
|||
|
the whole process just described taking place again. </p>
|
|||
|
<p>For more detailed information about Net.Data, including how to configure
|
|||
|
Net.Data and how to write Net.Data macros and language environments, see the <a href="http://www.ibm.com/servers/eserver/iseries/software/netdata/" target="_blank">Net.Data for iSeries™ home page</a> <img src="www.gif" alt="Link outside Information Center" />.</p>
|
|||
|
</div>
|
|||
|
<div>
|
|||
|
<div class="familylinks">
|
|||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaieprogramming.htm" title="This topic provides information on CGI, directives, APIs, and other programming topics.">Programming</a></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|