public class PropertyConverter extends Object
| Constructor and Description |
|---|
PropertyConverter() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getServletCtxInitParameters(javax.servlet.ServletContext ctx)
Converts the servlet context initialisation parameters (typically
specified in the
web.xml file) to a Java properties
hashtable. |
static Properties |
getServletInitParameters(javax.servlet.ServletConfig config)
Converts the servlet initialisation parameters (typically specified
in the
web.xml file) to a Java properties hashtable. |
public PropertyConverter()
public static Properties getServletInitParameters(javax.servlet.ServletConfig config)
web.xml file) to a Java properties hashtable. The
parameter names become property keys.
Note regarding web.xml markup: The servlet initialisation
parameters have an XML tag <init-param> and are defined
within the <servlet> element.
config - The servlet configuration.public static Properties getServletCtxInitParameters(javax.servlet.ServletContext ctx)
web.xml file) to a Java properties
hashtable. The parameter names become property keys.
Note regarding web.xml markup: The context parameters
have an XML tag <context-param> and are defined within the
<web-app> element.
ctx - The servlet context.Copyright © 2013 The Transaction Company. All Rights Reserved.