......
<init-param>
<param-name>OracleDriver</param-name>
<param-value>oracle.jdbc.driver.OracleDriver</param-value>
</init-param>
<init-param>
<param-name>Address</param-name>
<param-value>localhost</param-value>
</init-param>
......
</servlet>
public void init(ServletConfig _sysConfig) throws ServletException
{
ConfigObj = OnloadConfig(_sysConfig);
}
private WebConfig OnloadConfig(ServletConfig _sysConfig) throws ServletException,StringIndexOutOfBoundsException
{
ConfigObj.setDriveName(_sysConfig.getInitParameter("OracleDriver"));
ConfigObj.setAddress(sysConfig.getInitParameter("Address"));
return ConfigObj;
}