I have below code in a
servlet. I believe getServletContext() is throwing NullPointerException.
RequestDispatcher rd = getServletContext().getRequestDispatcher("/ialist.jsp");
I initiliazed the servlet context in the deployment descriptor (I think!). Here is the code:
...
<context-param>
<param-name>none</param-name>
<param-value>none</param-value>
</context-param>
...
Anyone know how to get the servlet context without getServletContext() throwing exception. Thx.