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 I support both get and post from the same servlet?
Explain the differences between jsp and servlet.
Which event is fired at the time of session creation and destroy?
How to upload a file to the server using servlet?
What is context in servlet?
Write a program to show the functionality of doget and dopost method?
What is ServletContext object?
What is a java servlet?
What do you understand by mime type?
What is servlet container?
What are the types of servlet?
Can we override servlet service method?
How can we perform any action at the time of deploying the project?
What is the life-cycle of servlets?
How do I know if java is running on linux?