Free Jobs
Reference




Java Forums: Core Java (15) J2EE (3) EJB (5) Servlet (3) JDBC (6) Hibernate (2) Struts (1) Swing (1) Oracle (7) JSP (4) Other (10)

Topic: What are the methods servlet must implement to communicate to a web server

To get the Posted Questions details daily in your mail Click Here

Share this Post on Facebook/Twitter/Orkut Bookmark and Share





User: shruti888 Post Date: 15 Jun 2011 14:31

Introduction:
What are the methods servlet must implement to communicate to a web server



Main Content:

Below are the methods a servlet must implement to communicate to a web server


1. String getServletInfo() : used to get information about the servlet e.g version

2. ServletConfig getServletConfig() : used to get servletConfig object.

3. void init(servletConfig) : This method is used to initialize the servlet.

4. void service(ServletRequest,ServletResponse) : This method is invoked each time a request for the servlet is made

5. void destroy() :For cleaning up resources used by servlet.


Conclusion:
The servlet must implement these five methods



About Writer:
Hi I am Java Developer from Bangalore


Writer's Link:

Writer's Email:







Comments:
  • User: ganesh.gothi@rediff.com Post Date:   27 Jul 2011 08:40
    Good evening sir, 

                                I am Ganesh Gothi from Indore, persuing MCA last semester, I want to all interview question of java and OOP''s concept, sir if you have a file that have a all question, sir please send me at my e-mail Id.

    My e-mail ID is-  ganesh.gothi@rediff.com OR ganesh.gothi@yahoo.com


Post Comment





Similar Articles Top ArticlesLatest Articles Other Articles by this Author







www.freejobsreference.com Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)