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 is a servlet?
What is cgi?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Explain the difference between servletconfig and servletcontext in servlet?
What is difference between PrintWriter and ServletOutputStream?
How to find whether a parameter exists in the request object?
What is http servlet in java?
What is the
Explain the custom jsp tags and the beans.
What are different Authentication options available in Servlets.
What is httpservlet class?
Can you call a jsp from the servlet?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
How can you use a servlet to generate a plain text instead of html?
Name the packages that work with servlet?