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

Programming and Management Features
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide544548-004
4-2
Receiving Response Information from a Servlet
Receiving Response Information from a Servlet
The NSJSP container response information is displayed in the same format as the
output of any other CGI program. The response information consists of:
One or more HTTP response headers
A blank line
The response content
If servlet/JSP does not provide the header information, the servlet API methods
insert the header content-type: text/html. If servlet/JSP does not include a
blank line, the servlet API methods insert the required carriage return and linefeed.
For information on how a servlet/JSP generates its output, see Using the Servlet
API on page 4-4.
Servlet Programming Features
This subsection describes:
Programming using NonStop Server for Java
Programming using other Java Environments
Servlet and NSJSP Examples and References
Using the Servlet API
Obtaining Specific CGI Environment Variable Values
Context Management
Multithreading – Spawning Java Threads
Request and Response Streams
Security Considerations
International Character Set Support
Reserved Cookie Names
javax.servlet.request.X509Certificate
A servlet uses servlet APIs to receive and respond to requests received from web
clients. A servlet uses other NonStop Servers for Java packages to perform functions
such as access to NonStop SQL/MX databases. The servlets inherit the scalability,
persistence, and performance benefits of the NonStop TS/MP ServerClass because
the NSJSP process runs as a NonStop TS/MP ServerClass.
This section provides a brief summary on how to use the Servlet API 2.5. For more
information on Servlet APIs and other API documentation, see
http://java.sun.com/products/servlet/