General properties  Welcome and error page specifications

Chapter 21: Creating Web Applications

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:





Copyright © 2005. Sybase Inc. All rights reserved. Welcome and error page specifications

View this book as PDF