how this statement works..?
public void service(HttpServletRequest
request,HttpServletResponse response)
Answer Posted / shubha
1.servlet container calls the service(servletreq,
servlrtResp) method of HTTPServlet.
2.the service(ServletReq, ServletResp) method of
HTTPServlet calls the service(HttpServletReq,
HttpServletResp) method of the same class. in this service
method is overloaded in the HttpServlet class.
3.service(HttpServletReq, HttpServletResp) mthos alayse the
request and findout which HTTP method is being
used.Depending on Http method appropriate doXXX() mthod
will be call.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Write a program to show the functionality of doget and dopost method?
What are the types of servlets? Explain
What is the procedure of invoking different servlet in a different application?
What is preinitialization of a servlet?
Why is servlet used?
What is the process for chaining servlet?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What is servlet invoker?
When Servlet is unloaded?
What are the common methods that are included in the http servlet class?
How to get the IP address of client in servlet?
What is called Scriptlet?
When a servlet accepts a call from a client, it receives two objects. What are they?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
How can you run a servlet program?