This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi friends i'm new to servlets..
As we know HttpRequest and HttpResponse object are created by the web containers(Containers) .as these two are interface how the container will create object for them if so there is there any class provided by the container which implements HttpRequest and HttpResponse ...please give me a clear picture of this issue.....
HttpRequest and HttpResponse is an interfaces.
But servlet container will implement that interfaces & create concrete classes.
when we say object of HttpRequest and HttpResponse this that means object of that concrete classes.
we do not need to care about that classes servlet container take care of all that thing.
If you want to see implementation then you need to look in source of any servlet container.
Hope this will Help.
Yes, the container includes classes that implement those interfaces. If you download the container's source code you should be able to find those easily by searching for something like "implements HttpServletRequest".
Please tell me in which class it is implemented in container source code
Joined: Mar 22, 2005
Even if we wanted to tell you, we couldn't, because we don't know which container you're using. Do you know how to search through multiple files for a particular phrase, like the one I suggested in my previous post? ShowSomeEffort