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
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
Which event is fired at the time of project deployment and undeployment?
How do servlets work?
Differentiate between get and post?
What is the difference between jsp and servlet life cycle?
What are session variable in servlets?
What is the life cycle of a servlet?
What are different ways for authentication of servlet?
What is the purpose of dispatcherservlet properties?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is preinitialization of a servlet?
What is servlet in web technology?
What do you mean by httpservlet?
If some new data has entered the database, explain how can a servlet refresh automatically?
Elucidate servlet attributes and its scope?