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-4
Programming Using Other Java Environments
•
Transaction protection using TMF.
For detailed information about NonStop Server for Java, see NonStop Server for Java
(NSJ) Programmer’s Reference.
Programming Using Other Java Environments
You also can develop servlets in some other Java environment and use them on the
NonStop system, for example:
•
The Abstract Windowing Toolkit (AWT) is included in the NonStop Server for Java
4, but classes that produce graphical output return an exception.
•
NonStop Server for Java 4 supports runtime execution of invisible Java beans but
does not support runtime execution that requires a graphical user interface (GUI)
operation.
•
Transaction protection in NonStop Server for Java 4 is based on, but not identical
to the current interface defined by Java Transaction Services.
For complete information about compliance characteristics of NonStop Server for Java
4 and about ensuring portability of Java programs to and from NonStop Server for
Java, see the NonStop Server for Java (NSJ) Programmer’s Reference.
Servlet and NSJSP Examples and References
Once you install and start the servlet container, you can access the NSJSP Sample
page from a web browser at URL:
http://hostname:portnumber/servlet_jsp/
From there you can find a listing of the Servlet API 2.4 and JSP API 2.0 (servlets and
JSP) interfaces, classes, and methods. The list of methods corresponds to the content
of the javax.servlet and javax.servlet.http packages defined by Sun
Microsystems.
If you are migrating from a previous release of Java servlets, you check the API
specification to ensure that any methods or interfaces you have used in the past have
not been deprecated. See the iTP Secure WebServer System Administrator’s Guide
for information about migration. Then, refer to Migrating to NSJSP 5.0 on page 7-1 for
information about migrating from previous NSJSP releases.
Using the Servlet API
The servlet API includes interfaces, classes, and methods that structure the interaction
between a servlet and a web client. The following classes facilitate servlet usage.
The HttpServlet Class
This class extends the class GenericServlet by overriding the service
(ServletRequest,ServletResponse) method, which receives, processes, and