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 / sanjeev kumar

When ever a http client request is sumbitted servlet engine
will received this request and it identifies the proper
servlet to handle this request from web.xml and calls the
public service method of the perticular servlet. Internally
this public service will call the private service method
and private service method will call the doGet() or doPost
() method based on the client request. This public void
service(HttpServletRequest request, HttpServletResponse
response) will be called once per the request.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you communicate in between Applets and Servlets?

1073


What is the difference between context parameter and context attribute?

1058


What is a server side include (ssi)

1166


How do I support both get and post from the same servlet?

1217


What is the use of httpservletrequestwrapper?

1106


What is URL Encoding?

1191


What is called Session Tracking?

1200


What are the important functions of filters?

1150


What is a web container and what is its responsibility?

986


Why do we need servlet filter?

1063


What are all the protocols supported by httpservlet?

1288


Explain url encoding in servlet?

1061


Servlet is pure java object or not?

1201


What is difference between PrintWriter and ServletOutputStream?

1299


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

1456