Well, it's pretty simple, and ALL explained in the
Servlet 2.2 specification from Sun.
Section 4.2 says:
"4.2 Initialization Parameters
A set of context initialization parameters can be associated with a web application and are made available by the following methods of the ServletContext interface:
� getInitParameter()
� getInitParameterNames()
Initialization parameters can be used by an application developer to convey setup information, such as a webmaster�s e-mail address or the name of a system that holds critical data."
Later in the "Examples" section of web.xml files (Section 13.3) they show how you set this up in a web.xml file:
"< web-app>
< display-name>A Simple Application< /display-name>
< context-param>
< param-name>Webmaster< /param-name>
< param-value>
webmaster@mycorp.com< /param-value>
< /context-param>
...
< /web-app>"
Kyle
------------------
Kyle Brown,
Author of
Enterprise Java (tm) Programming with IBM Websphere See my homepage at
http://members.aol.com/kgb1001001 for other WebSphere information.
[This message has been edited by Kyle Brown (edited November 21, 2001).]