Context initialization properties

All servlets and JSPs in a Web application share a common set of context initialization properties specified by the deployment descriptor. Servlet code can retrieve the values by calling the getInitParamers() and getInitParameterNames() methods in interface javax.Servlet.ServletContext.

Environment properties can be used for the same purpose as context-initialization properties, and allow additional datatypes besides java.lang.String. See “Environment properties” for more information.

StepsConfiguring context initialization properties

  1. Display the Context Params tab in the Web Application Properties dialog box.

  2. A list of properties and values appears. You can create, modify, and delete properties as follows:

    • To define a new property, click Add. Edit the Name and Value fields in the new row. You can optionally enter text in the Description field to describe the intended use.

    • To modify a property, put the cursor in the Name or Value fields, then edit the text.

    • To delete a property, put the cursor in the Name or Value fields and click Delete.