Net.Data Books

Administration and Programming Guide for OS/390


Invoking Net.Data with Java Servlets

Servlets are Java classes that perform a role similar to that of CGI programs or Web server API plug-ins. Servlets are used by a Java servlet-enabled Web server to perform CGI-like functions. Servlets do not have their own graphical user interface, but their classes can be dynamically loaded locally, or from across the network, and can be called using a URL address (remotely) or by a class name (locally).

Net.Data provides servlets that you can use to invoke Net.Data macros, single SQL statements, stored procedures, and functions on OS/390. The servlets can be executed from both a URL and as a Server-Side-Include (SSI). Net.Data provides two servlets:

MacroServlet (com.ibm.netdata.servlets.MacroServlet)
Executes a Net.Data macro.

You can run macros through Server-Side-Includes (SSI) to embed multiple macros in your HTML file.

Function Servlet (com.ibm.netdata.servlets.FunctionServlet)
Invokes Net.Data without a macro by specifying:

The function servlet provides direct request capability, but using a Java interface. See Invoking Net.Data without a Macro (Direct Request) for more information.


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