how this statement works..?
public void service(HttpServletRequest
request,HttpServletResponse response)
Answer Posted / sanjeev kumar
When ever a http client request is sumbitted servlet engine
will received this request and it identifies the proper
servlet to handle this request from web.xml and calls the
public service method of the perticular servlet. Internally
this public service will call the private service method
and private service method will call the doGet() or doPost
() method based on the client request. This public void
service(HttpServletRequest request, HttpServletResponse
response) will be called once per the request.
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Which is the methods of generated servlet?
What is dispatcher servlet?
Describe in brief RequestDespatcher?
What is the dispatcher servlet?
What's the difference between servlets and applets?
Elucidate servlet attributes and its scope?
What is the purpose of dispatcherservlet properties?
What is a servlet engine?
What are the jobs performed by servlets?
What is http servlet in java?
Why HttpServlet class is declared abstract?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What are the differences between the servletconfig interface and the servletcontext interface?
What is cgi?
What are important features of Servlet 3?