Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Servlet Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

6.9 Reading Context Parameters

Every servlet and filter in a context has access to the context parameters defined in the context web.xml file. The context object provides a getInitParameter() function that takes a string name and returns the contents of the initialization parameter by that name. The code sample below shows a servlet retrieving the initialization parameters from the context-param element shown in Section 4.6

If the context does not contain a context parameter with the name provided, the getInitParameter() function returns an empty string.



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.