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 many jsp scripting elements are there and what are those?
What are the objects involved when a servlet receives a call from client?
Can we use threads in Servlets?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is Client-Server Computing?
Can we get PrintWriter and ServletOutputStream both in a servlet?
What are the two important api's in for servlets?
Which interface must be implemented by all servlets?
List the Different types of servlet?
What is the use of send redirect () method?
What do you mean by cgi and what are its drawbacks?
Is tomcat a servlet container?
What are the different types of servlets?
What is a server side include (ssi)
What exactly are the functions of servlet?