[Opensource] Custom initial properties?
larry hamel
expresso at codeguild.com
Wed May 7 01:08:35 PDT 2003
Hi,
What is the best way to handle custom initialization parameters?
Setup.java and ConfigManager.java offer a static means to access various parameters that an application might want to set. However, Setup has the schema name which would be easy to mistake, in my opinion, and neither approach seems to offer easy access to ServletContext parameters. Expresso itself uses such values in web.xml:
<context-param>
<param-name>configDir</param-name>
<param-value>WEB-INF/config</param-value>
</context-param>
It would be easy to add code in that configManager.config() routine such that the entire list of context parameters found in web.xml would be added as custom properties.
What do you think? How do you handle this?
Larry
More information about the Opensource
mailing list