GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Servlets
Go To First  |  Previous Question  |  Next Question 
 Servlets  |  Question 159 of 168    Print  
What is the use of Service() in servlets? How is that method invoked?

  
Total Answers and Comments: 5 Last Update: March 15, 2008     Asked by: raj 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 21, 2007 13:00:47   #1  
siri        

RE: What is the use of Service() in servlets? How is t...
service() method is used for processing of requests and this is invoked by the servlet container
 
Is this answer useful? Yes | No
November 21, 2007 08:14:45   #2  
fcasttro Member Since: March 2007   Contribution: 16    

RE: What is the use of Service() in servlets? How is t...
The service() method is available in the Generic servlet and this is used to serve the client request. This method is invoked by the servlet container.
 
Is this answer useful? Yes | No
February 13, 2008 05:41:53   #3  
sampra Member Since: February 2008   Contribution: 279    

RE: What is the use of Service() in servlets? How is that method invoked?
The service() method is available in the Generic servlet and this is used to serve the client request. This method is invoked by the servlet container
 
Is this answer useful? Yes | No
February 25, 2008 10:11:33   #4  
barathalam Member Since: February 2008   Contribution: 1    

RE: What is the use of Service() in servlets? How is that method invoked?

The container initializes the servlet instance by calling the init .After completing the initialization it calls the service () method passing servlet request and response objects as parameters. service () method is designed in such a way the depending on type of the request method it calls the either doGet() or doPost() method. There is no need to make a explicit call to doGet () or doPost() method.


 
Is this answer useful? Yes | No
March 15, 2008 08:55:22   #5  
dhruv_saksena Member Since: March 2008   Contribution: 9    

RE: What is the use of Service() in servlets? How is that method invoked?
Service() method is used to handle requests and it is invoked by the ServletContainer.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape