getServletConfig().getInitParameter() returns null, pls help!
843838Nov 17 2005 — edited Nov 17 2005Hello,
I have a jsp page to call servlet value from web.xml file. My code is
String strParam1 = getServletConfig().getInitParameter("param1");
The jsp pge worked before, but it stop working recently. It always returns "null". I checked web.xml file. It looks well configured.
I also tried to call getServletConfig().getInitParameterNames(), but it returned nothing.
Can somebody tell me what cause this problem and what I should do? Our admin rebooted the server, but it doesn't help.
Thanks for you help in advance!!!