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 to upload a file to the server using servlet?
What is webservlet?
What is servlet and how it works?
What is the difference between using getSession(true) and getSession(false) methods?
Servlet is pure java object or not?
What is httpservlet class?
Differentiate between get and post?
What is meant by session? Tell me something about httpsession class?
Explain the role of dispatcherservlet and contextloaderlistener.
What is the difference between a generic servlet and http servlet?
What is preinitialization of a servlet?
Which interface should be implemented by all servlets?
What do you mean by chaining in servlet?
Is servlet synchronized?
Difference between forward() method and sendredirect() method ?