iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Using NonStop Servlets for JavaServer Pages With
The iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—522659-001
9-29
Other Java Environments
Other Java Environments
You also can develop servlets in some other Java environment and use them on the
NonStop system. Depending on the features your servlet uses, it might benefit from
minor modifications. For example:
•
The Abstract Windows Toolkit (AWT) is included in the NonStop Server for Java,
but classes that produce graphical output return an exception.
•
NonStop Server for Java 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 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
and about ensuring portability of Java programs to and from NonStop Server for Java,
see NonStop Server for Java (NSJ) 2.0 Programmer’s Guide.
For information about threading and context-management issues for servlets in the iTP
Secure WebServer environment, see Context-Management
on page 9-31 or
Multithreading - Spawning Java Threads on page 9-31.
Servlet and JSP Examples and References
Once you install and start the servlet container, you can access the NonStop Servlets for
JavaServer Pages Sample page from a web browser at URL:
http://hostname:<portnumber>/samples/Servlets/
From here you can find a listing of the Servlet API 2.2 (servlets and JSP) interfaces,
classes, and methods you can use with the iTP Secure WebServer environment. The list
of methods corresponds to the content of the javax.servlet and javax.servlet.http
packages defined by JavaSoft.
You can find useful information about the Servlet API 2.2 and servlets/JSP
programming in Professional Java Server Programming (J2EE edition) by Wrox Press
Ltd, or by accessing Sun Microsystems websites.
If you are migrating from a previous release of Java servlets such as 2.0, you should
check the API spec to ensure that any methods or interfaces you have used in the past
have not been deprecated. The Migration From T0094 to T1222
(See page 9-40)
contains the changes that we have noted.
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 section contains some examples of the
API.