Hi all,
My
servlet has the following code in its doGet() method.
String adr = "/xxx/xxx.jsp";
ServletConfig sConf = getServletConfig(); // line1
ServletContext sCont = sConf.getServletContext(); //line2
RequestDispatcher dispatcher= sCont.getRequestDispatcher(adr);//line3
line 1 seems to work fine. (I originally had print statement between each line.. )
but line2 returns null..
'cos I get NullPointerException at line 3.
I am don't know what is wrong...
HELP!!!