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

Why doesn’t a servlet include main()?

984


What is URL Encoding?

1097


What do you mean by interservlet communication?

1013


Explain servlet life cycle?

1062


What are different methods of session management in servlets?

1206


What is the use of servlet wrapper classes?

1120


How to create war file?

1092


Why do we need a constructor in a servlet if we use the init method?

984


What are the steps that are involved in using the httpservlet class?

1062


How can we refresh automatically when new data has entered the database?

1051


What do you mean by scope object and what are its types?

1020


Which httpsession object is used to view and manipulate information about a session?

1113


What is servlet container. how it works?

1087


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

1119


Can you call a jsp from the servlet?

965