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
What do you mean by interservlet communication?
What is context in servlet?
Explain the steps involved in placing a servlet within a package?
What's the servlet interface?
How printwriter is different from servletoutputstream?
What is servlet api used for conneting database?
How to get the actual path of servlet in server?
What do you mean by singlethreadmodel interface?
Explain servlet events?
What are the drawbacks of cgi?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is servlet looping or chaining?
Explain the architechure of a servlet?
What is servlet collaboration?
Explain the differences between jsp and servlet.