IBM Books

Net.Data Language Environment Reference


Web Registry Language Environment

The Net.Data Web registry provides persistent storage for application-related data. A Web registry can be used to store configuration information and other data that can be accessed dynamically at run time by Web-based applications. You can access Web registries only through Net.Data macros using Net.Data and the Web registry built-in support and from CGI programs written for this purpose. The Web registry available on a subset of operating systems. See the Net.Data operating system reference appendix in Net.Data Reference

Standard Web page development requires that URLs be placed directly in the HTML source for the page. This makes changing links difficult. The static nature also limits the type of links that can be easily placed on a Web page. Using a Web registry to store application-related data, for example URLs, can help in the creation of HTML pages with dynamically set links.

Information can be stored and maintained in a registry by application developers and Web administrators who have write access to the registry. Applications retrieve the information from their associated registries at run time. This facilitates the design of flexible applications and also allows movement of applications and servers. You can use Net.Data macros to create HTML pages using dynamically set links.

Information is stored in a Web registry in the form of registry entries. Each registry entry consists of a pair of character strings: a RegistryVariable string and a corresponding RegistryData string. Any information that can be represented by a pair of strings can be stored as a registry entry. Net.Data uses the variable string as a search key to locate and retrieve specific entries from a registry.

You can see sample contents of a Web registry in Table 3.

Table 3. Sample Web Registry
CompanyName WorldConnect
Server ftp.einet.net
JohnDoe/foreground Green
CompanyURL/IBM Corp. http://www.ibm.com
CompanyURL/Sun Microsystems Corp. http://www.sun.com
CompanyURL/Digital Equipment Corp. http://www.dec.com
JaneDoe/Home_page http://jane.info.net

Here are some reasons to consider using a Web registry:

Indexed entries in the Web Registry are entries whose RegistryVariable strings have an additional Index string appended to them, using the following syntax:

RegistryVariable/Index

The user provides the value of the index string in a separate parameter to a built-in function designed to work with indexed entries. Multiple indexed registry entries can have the same RegistryVariable string value, but they can maintain their uniqueness by having different Index string values.

Table 4. Sample Indexed Web Registry
Smith/Company_URL http://www.ibmlink.ibm.com
Smith/Home_page http://www.advantis.com

Even though the above two indexed entries have the same RegistryVariable string value Smith, the index string is different in each case. They are treated as two distinct entries by the Web registry functions.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]