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
Why do we need servlet filter?
When servlet object is created?
Whether we can get deadlock situation in servlets?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
How will two or three servlets interact or communicate with each other?
Explain web container.
Why servlet is mostly used?
What is cgi?
What are the ways to handle multi-threading in servlets?
What are the advantages of Servlet over CGI?
How do we go with database connection and log4j integration in servlet?
what is multiple server?
What do you mean by mime type?
What are the differences between the servletconfig interface and the servletcontext interface?
Explain the steps involved in placing a servlet within a package?