NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide

NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide544548-004
4-1
4
Programming and Management
Features
This chapter includes these sections:
Client Programming Features
Servlet Programming Features
JMX Based Administration
Admin Web Application
Client Programming Features
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, minor differences exist between
using a servlet or any other type of CGI application.
This subsection describes:
Passing Request Information to a Servlet
Receiving Response Information from a Servlet
You must be familiar with the information in the iTP Secure WebServer System
Administrator’s Guide to understand this section of the manual.
Passing Request Information to a Servlet
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 the path
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 the environment variable and the input stream through an object,
as described in Using the Servlet API on page 4-4.