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

Configuring Your Servlet Container

This section describes the procedure for configuring the servlet container.

ProcedureTo Set Up Servlet Container

  1. Select the configuration.

    Select the configuration from the configuration list. Click Configurations tab to get the list.

  2. Click on 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



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

This parameter 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

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

Encode Cookies

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

Reuse Session IDs

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.