NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide
Programming and Management Features
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-002
4-2
Receiving Response Information
Receiving Response Information
The response from the NSJSP container has the same form as the output from any
other CGI program and consists of:
•
One or more HTTP response headers
•
A blank line
•
The response content
However, the servlet/JSP itself need not generate all these elements. If it does not
provide header information, the servlet API methods insert the header
content-type: text/html. If the servlet/JSP does not include the blank line, the servlet
API methods insert the required carriage return and linefeed.
For information about how a servlet/JSP generates its output, see Using the Servlet
API on page 4-4.
Servlet Programming Features
This subsection describes the following topics:
•
Programming Using NonStop Server for Java on page 4-3
•
Programming Using Other Java Environments on page 4-4
•
Servlet and NSJSP Examples and References on page 4-4
•
Using the Servlet API on page 4-4
•
Obtaining Specific CGI Environment Variable Values on page 4-6
•
Context-Management on page 4-6
•
Multithreading – Spawning Java Threads on page 4-6
•
Request and Response Streams on page 4-7
•
Security Considerations on page 4-7
•
International Character Set Support on page 4-7
•
Reserved Cookie Names on page 4-8
•
javax.servlet.request.X509Certificate on page 4-8
A servlet uses the servlet API to receive and respond to requests from web clients. It
uses other NonStop Server for Java packages to perform such functions as access to
NonStop SQL/MP or NonStop SQL/MX databases. Because an NSJSP process is a
NonStop TS/MP ServerClass, your servlets inherit the scalability, persistence, and
performance benefits of such classes.