James Sabre wrote:Looks to be a method in your servlet since it is not explicitly associated with an object or a class instance.
hm,but i read that if we want to create a servletContext object we will use directly getServletContext() ex: ServletContext stxt=getServletContext();
but getServletContext() method is available in Servletconfig Interface. so this extractFromRequest() is also same as it is ....?
and can you tell me ServletConfig is a interface and even we are using in servlet class we will write like init(ServletConfig s){}
and in while Calling getServletContext() we are not using any object but we know that its by default called by ServletConfig object.
i didnt get this concept much.