Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is context in servlet?

1097


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

1098


What is the difference between CGI and Servlet?

1128


What are the drawbacks of cgi?

1114


How can we implement a jsp page?

1199


How to find whether a parameter exists in the request object?

1161


Explain the methods of request dispatcher in servlet?

1099


What is the difference between the servlets and cgi programs?

1045


Can we refresh servlet in client and server side automatically?

1108


What is the difference between sendredirect() and forward() in a servlet?

1056


What is servletconfig?

1080


What is lazy loading and what is Generic Servlet Class?

1127


Define the servlet mapping.

1118


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1146


What’s the difference between forward() and sendredirect() methods?

1061