New Member FAQ
Posting Guidelines
Help Topics
Revenue Sharing
Learn Hindi
S
pecial
R
eferral
P
rogramme
: Refer your Friends and Earn upto Rs.500 .
Know more..
MP Forum
MP Resources
Jobs in MP
MP Education
MP Tourism
MP Information
Bookmarks
|
Members
|
Practice Tests
|
Polls
|
New Posts
|
Resources
»
Madhya Pradesh Education
»
General Educational Information
Information About Servlet Interface and life cycle Methods in Java.
Posted Date:
09-Mar-2011
Category:
General Educational Information
Rating:
Author:
roopa
Member Level:
Silver
Points
: 10 (
Rs
3)
This resource contain the information about life cycle methods of Servlet Interface.
Servlet Interface
This interface contains the life cycle methods for a servlet page
Following are the life cycle methods of Servlet Interface
:-
1.
Public void init (ServletConfig config) throw ServletException
This method is the first method to be executed in life cycle of the Servlet page. The method contains an object parameter of ServletConfig interface pack. The ServletConfig object holds information of Servlet container and other parameter objects.
2.
Public void service (ServletRequest req, ServletResponse res) throws servletException, IOException
This method is executed after the init method. This method is used to retrieve data send by the client, process the data and access the machine resource and their after respond output back to the client who made the request.
This method contains two object parameters of ServletRequest and ServletResponse interface type. This method automatically instantiates this parameter object. This client data and information is retrieve through ServletResponse object. This method throws ServletException and IOException.
3.
Public void destroy()
This method is called when the Servlet page is unloaded or destroyed by the servlet container.
View for more information about Servlet
Servlet in Java
Did you like this resource? Share it with your friends and show your love!
Tweet
Share
Responses to "Information About Servlet Interface and life cycle Methods in Java."
Feedbacks
Post Comment:
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
Information About ServletResponse Interface and Their Initiation Methods in Java.
Previous Resource:
Information About Generic Servlet Class in Java.
Return to Resources
Post New Resource
Category:
General Educational Information
Post resources and
earn money
!
More Resources
Information About ServletRequest Interface and Their Initiation Methods in Java.
Let Us Know About Servlet in Java.
Let Us Know About E-Commerce
Let Us Know About HTML
Let Us Know About JavaScript
Education in Madhya Pradesh
Popular Tags
Tag posting guidelines
Search Tags
Life cycle methods of Servlet Interface.
.
Servlet Interface
.
Contests on MPSpider
Resource contest: MP Entrance Exam Preparation
Want Email Alerts?
Get Jobs by Email
Forum posts by Email
Articles by Email
My Profile
Sign In
Register
AdSense Revenue
Online members
Akanksha P.V
More...
Active Members
Today
Last 7 Days
Suchithra S
(86)
Hakimuddin
(74)
AMIT TIWARI
(21)
more...
Areas
Anuppur
Ashok Nagar
Balaghat
Barwani
Betul
Bhind
Bhopal
Burhanpur
Chhatarpur
Chhindwara
Damoh
Datia
Dewas
Dhar
Dindori
Guna
Gwalior
Harda
Hoshangabad
Indore
Jabalpur
Jhabua
Katni
Khandwa
Khargone
Mandla
Mandsaur
Morena
Narsinghpur
Neemuch
Panna
Raisen
Rajgarh
Ratlam
Rewa
Sagar
Satna
Sehore
Seoni
Shahdol
Shajapur
Sheopur
Shivpuri
Sidhi
Tikamgarh
Ujjain
Umaria
Vidisha
About Us
Contact Us
Copyright
Privacy Policy
Terms Of Use
Revenue Sharing sites
Advertise
Talk to
Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2011 All Rights Reserved.