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
How do you communicate in between Applets and Servlets?
What is the difference between context parameter and context attribute?
What is a server side include (ssi)
How do I support both get and post from the same servlet?
What is the use of httpservletrequestwrapper?
What is URL Encoding?
What is called Session Tracking?
What are the important functions of filters?
What is a web container and what is its responsibility?
Why do we need servlet filter?
What are all the protocols supported by httpservlet?
Explain url encoding in servlet?
Servlet is pure java object or not?
What is difference between PrintWriter and ServletOutputStream?
How will two or three servlets interact or communicate with each other?