Hi Farakh,
If you recall the signature for doGet() or doPost() methods, this is how it mostly looks :
When your client sends in a request through the
jsp, using a form, the container sees the method of the request, GET, POST etc. Suppose the method is GET. So container invokes the doGet() method in the servlet, and passes it the reference to the HttpServletRequest and HttpServletResponse objects that it created to handle this particular request. The container does not take responsibility for passing references of these objects to any other method that you have written yourself.
Hope this clears the confusion.