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


Please Help Members By Posting Answers For Below Questions

Name the packages that work with servlet?

739


What is the directory structure of web application?

715


What are some advantages of storing session state in cookies?

785


How do we call one servlet from another servlet?

758


What are the different session tracking techniques?

949


What is the importance of init() method in Servlet ?

805


How do you communicate in between Applets and Servlets?

805


What is servlet name in web xml?

759


What are the differences between servlet context vs servlet config?

812


What are some disadvantages of storing session state in cookies?

786


What are the uses of servlets?

803


What is url encoding and url decoding

832


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1933


What is the difference between Difference between doGet() and doPost()?

973


Explain load on start-up and its importance?

834