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

Why do we need servlet filter?

1040


When servlet object is created?

1141


Whether we can get deadlock situation in servlets?

1048


Are Servlets Thread Safe? How to achieve thread safety in servlets?

958


How will two or three servlets interact or communicate with each other?

1439


Explain web container.

1016


Why servlet is mostly used?

1225


What is cgi?

1000


What are the ways to handle multi-threading in servlets?

1070


What are the advantages of Servlet over CGI?

1130


How do we go with database connection and log4j integration in servlet?

1157


what is multiple server?

2291


What do you mean by mime type?

966


What are the differences between the servletconfig interface and the servletcontext interface?

1165


Explain the steps involved in placing a servlet within a package?

1041