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-42
Make The Following Changes to Your web.xml File
•
The following parameters must be recreated in the web.xml file, using the new XML
syntax:
Definitions of session timeout values using com.tandem.servlet.sessiontimeout
Definitions of initial parameters for servlets using servlet-name.initArgs.
Make The Following Changes to Your web.xml File
•
Definitions of session timeout values. This is an element within the session-config
element. The specified timeout value must be expressed as an integer number of
minutes. (Note that it was previously seconds, not minutes.)
An example of the XML syntax is as follows:
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
•
Definitions of initial parameters for servlets. The init-param element contains a
name/value pair as the initialization parameter of the servlet. An example of the
XML syntax is as follows.
<servlet>
<servlet-name>
your alias servlet name
</servlet-name>
<servlet-class>
your servlet name
</servlet-class>
<init-param>
<param-name>name1</param-name>
<param-value>value1</param-value>
<param-name>name2</param-name>
<param-value>value2</param-value>
</init-param>
</servlet>
Note that the servlet-name is an alias of the servlet-class name. The alias allows you
to change the name of the class without having to make changes to URL references
to the servlet in the application. If you have no need of this feature, use the same
name in both places.
Make The Following Changes to Your iTP_server.xml File
•
This is a new file, there are no changes as a result of migration. For details of usage
see , The iTP_server.xml File,
on page 9-20.