Hi:
 
I am trying to get the following entries from web.xml.
 
 
 
<context-param>
  <param-name>DriverName</param-name>
  <param-value>org.gjt.mm.mysql.Driver</param-value>
 </context-param>
 
I am using the following apis to get the DriverName.
 
public void init(ServletConfig scon)
{
    super.init(scon);
    DriverName = getServletContext().getInitParameter("DriverName");
...............
 
When I compile this code, I get the following error:
 
 Method getInitParameter(java.lang.String) not found in interface javax.servlet.ServletContext.
  DriverName = getServletContext().getInitParameter("DriverName");
 
javax.servlet.ServletContext api swears that getInitParameter exists. Obviously I am missing something here.
 
Please help.
 
Thanks,
rk
 
 
 
 
 

 

Reply via email to