tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mailing List Servlet" <>
Subject Init Parameter
Date Fri, 19 Sep 2003 15:10:35 GMT
Hello everybody,

I started to learn servlets few times ago. Everything was working perfectly
until I tried to get my <init-param> from my web.xml file.
I receive all the time a null value when I ask the value of my parameter:
String driver = getServletConfig().getInitParameter("driver").

If I put the parameter in a <context-param>, no problem, it works.
String driver = getServletContext().getInitParameter("driver");

Can someone help me. Thanks

Here is my web.xml file:





View raw message