NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-002
4-1
4 Programming and Management
Features
The information discussed in this section includes the following:
•
Client Programming Features on page 4-1
•
Servlet Programming Features on page 4-2
•
JMX Based Administration on page 4-9
•
admin Web Application on page 4-10
Client Programming Features
Before you read this subsection, you should be familiar with the information in the iTP
Secure WebServer System Administrator’s Guide.
This subsection describes how to refer to a servlet and how to send requests to and
receive responses from a servlet. For a web client, little difference exists between
using a servlet or any other type of CGI application.
This subsection describes the following topics:
•
Invoking a Servlet on page 4-1
•
Passing Request Information on page 4-1
•
Receiving Response Information on page 4-2
Invoking a Servlet
You invoke a servlet by including a reference to its URL. The syntax of a servlet URL is
described in Map Requests to Applications and Servlets on page 3-20.
Passing Request Information
You can pass request information to a servlet in any of the following ways:
•
Query strings appended to URLs. The servlet receives this data through the
QUERY_STRING environment variable.
•
Extra path information appended to URLs. The servlet receives this information
through the PATH_INFO and PATH_TRANSLATED environment variables.
•
HTML forms. A servlet receives data from HTML forms in an input stream.
A servlet accesses environment variables and the input stream through an object, as
described in Using the Servlet API
on page 4-4.