Sun Java System Web Server 7.0 Update 7 Administrator's Guide

Configuring Your Servlet Container

This section describes the procedure for configuring the servlet container.

ProcedureTo Set Up Servlet Container

  1. Click the Configurations tab to see the list of available configurations and select the configuration you need.

  2. Click Java > Servlet Container.

Servlet Container Global Parameters

The following table describes the parameters available on the servlet container page.

Table 11–1 Servlet Container Parameters

Parameter

Description

Log Level

Log verbosity for the servlet container. The values can be finest (most verbose), finer, fine, info, warning, failure, config, security, or catastrophe (least verbose). 

Dynamic Reload Interval

Defines the time period after which the server checks deployed web applications for modifications. The value range is 1 to 60, or –1 if dynamic reloading should be disabled. 

Anonymous Role

Name of the default, or anonymous, role assigned to all principals. The default role is ANYONE. 

Servlet Pool Size

Number of servlet instances to instantiate per SingleThreadedServlet. The range value is 1 to 4096.

Dispatcher Max Depth

Maximum depth for the servlet container allowing nested request dispatches. The range of values can be between 0 and 2147.0483647.0. The default value is 20. 

Allow Cross Context

Tells whether request dispatchers are allowed to dispatch to another context. The default value is false. 

Encode Cookies

Indicates whether the servlet container encodes cookie values. The default value is true. 

Display Exception

Displays an exception on the browser. This option is useful only in development environment. Disable this option in production environment. 

Decode Cookies

The servlet container decodes the plus character in cookie value to space. 

Reuse Session IDs

Indicates whether any existing session ID number is reused when creating a new session for that client. The default value is false. 

Secure Session Cookie

Dynamic/True/False. This parameter controls under what conditions the JSESSIONID cookie is marked secure. Use dynamic (default) to mark the cookie secure only when the request was received on a secure connection (HTTPS). 

Select True to always mark it secure and false to never mark it secure.