I used this method directly in order to get parameter values by name from a a web.xml for a
servlet. Why is it that I see in some examples where people get the ServletContext then make a call to getInitParameter().
Also what is the difference between:
ServletContext ctx = getServletConfig().getServletContext();
ServletContext context = getServletContext();
I know that the second one uses GenericServlet.gstServletContext, but I still do not know what the difference is.