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
Why doesn’t a servlet include main()?
What is URL Encoding?
What do you mean by interservlet communication?
Explain servlet life cycle?
What are different methods of session management in servlets?
What is the use of servlet wrapper classes?
How to create war file?
Why do we need a constructor in a servlet if we use the init method?
What are the steps that are involved in using the httpservlet class?
How can we refresh automatically when new data has entered the database?
What do you mean by scope object and what are its types?
Which httpsession object is used to view and manipulate information about a session?
What is servlet container. how it works?
How do we go with database connection and log4j integration in servlet?
Can you call a jsp from the servlet?