If it is a question, please take a look at the API and see what the association between the objects is. that should help you.
Joined: Apr 20, 2002
Sorry I could not answer more fully in my earlier post.
HttpServlet has 2 methods (inherited from GenericServlet) called getServletConfig and getServletContext. getServletConfig returns a ServletConfig object that has a getServletContext method. Both getServletContext methods return the same object. This is just the way GenericServlet and HttpServlet were designed. Try executing the 2 calls to obtain the ServletContext from your HttpServlet class and you will see that they return the same ServletContext object
Padma priya Gururajan
Joined: Oct 05, 2006
Hi Michael, Thanks for the nice explanation. With regards, Padma priya N.G.