As per I read, Container creates or allocates thread to each new request. Following are my questions.
1. How does that thread gets access to our Servlet defined doGet/doPost method?
2.Is it that threads run() method calls Servlets service() method which in turn calls doGet or doPost method depending upon HTTP request type, so that each request is handled in separate call stack?
MaheshS Kumbhar wrote:
2.Is it that threads run() method calls Servlets service() method which in turn calls doGet or doPost method depending upon HTTP request type, so that each request is handled in separate call stack?