• Post Reply Bookmark Topic Watch Topic
  • New Topic

about dispatch

 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers

I attended this qn Boson practice test. I am confused with the answer given in the test

What HTTP Servlet class method is used to dispatch an HTTP POST request?
A) doGet
B) Service
c) doPost
D) doTrace
E) service

my answer is doPost. The answer given is service is it correct?
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Verbatim from the Servlet 2.4 Spec, Pg 230:
service handles standard HTTP requests by dispatching them to the handler methods for each HTTP request type.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!