Sudhanshu Mishra wrote:Hi all,
I am new to servlet programming.I want to know that how is the request processed by a doxxx method of servlet.HttpServletRequest is an interface,but how is then an object of HttpServletRequest passed to the doxxx method ?Does the container implicitly creates the object of HttpServletRequest?
The servlet container must supply objects that implement the HttpServletRequest and HttpServletResponse interfaces and injects them into the doXXX methods. The implementation might be different among different containers, but all should follow the servlet specification.