NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
3-72
The web.xml File
not perform the database operations on the session object thus eliminating
unnecessary database operation.
HP recommends that all the static content of an application be served directly by the
iTP Secure WebServer.
Example 3-58 shows the configuration of the static content filter.
Session Timeout
You can set the default session timeout (in minutes) for all newly created sessions by
modifying the value in the session-config element.
Example 3-59 shows the configuration of the session timeout parameter.
MIME Type Mappings
The <mime-mapping> element associates a file extension with a MIME type.
You can add an additional file extension if it is not already listed as a <mime-
mapping> element.
Example 3-58. Configuration of the Static Content Filter
<!--
<filter>
<filter-name>StaticContentFilter</filter-name>
<filter-
class>com.hp.tandem.nsjsp.filters.StaticContentFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>StaticContentFilter</filter-name>
<url-pattern>*.gif</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>StaticContentFilter</filter-name>
<url-pattern>*.jpeg</url-pattern>
</filter-mapping>
-->
Example 3-59. Configuration of the Session Timeout Parameter
<session-config>
<session-timeout>30</session-timeout>
</session-config>










