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 I support both get and post from the same servlet?

1252


Explain the differences between jsp and servlet.

1047


Which event is fired at the time of session creation and destroy?

1445


How to upload a file to the server using servlet?

1057


What is context in servlet?

1097


Write a program to show the functionality of doget and dopost method?

1258


What is ServletContext object?

1158


What is a java servlet?

1152


What do you understand by mime type?

1035


What is servlet container?

1161


What are the types of servlet?

1379


Can we override servlet service method?

1150


How can we perform any action at the time of deploying the project?

1164


What is the life-cycle of servlets?

1182


How do I know if java is running on linux?

1177