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

A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1085


Which event is fired at the time of project deployment and undeployment?

1320


How do servlets work?

1027


Differentiate between get and post?

1161


What is the difference between jsp and servlet life cycle?

1219


What are session variable in servlets?

1025


What is the life cycle of a servlet?

1530


What are different ways for authentication of servlet?

1081


What is the purpose of dispatcherservlet properties?

1109


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1169


What is preinitialization of a servlet?

1027


What is servlet in web technology?

1046


What do you mean by httpservlet?

1062


If some new data has entered the database, explain how can a servlet refresh automatically?

1291


Elucidate servlet attributes and its scope?

1014