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
What's the difference between authentication and authorization?
What is the need of servlet filters?
Can we get PrintWriter and ServletOutputStream both in a servlet?
What is war file?
What is servlet in web technology?
What are the functions of Servlet container?
What are the differences between the servletconfig interface and the servletcontext interface?
What is context in servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
Define servlet mapping?
List out difference between a JavaBean from a Servlet?
What is the life cycle of a servlet?
What is servlet and list its types?
Explain the difference between jsp and servlet?
Explain the differences between jsp and servlet.