A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
init() method
Rajib Sarma
Ranch Hand
Joined: Apr 29, 2002
Posts: 34
posted
Jul 17, 2002 09:04:00
0
Hi,
We know that the init() method is invoked at the very beginning of it's life cycle. I want to ask, who provide the init() method for a
servlet
, if we donot write it in our code?
Thanks in advance.
-Rajib
*** Rajib Prasad Sarma ***<br />==========================
chanoch wiggers
Author
Ranch Hand
Joined: May 24, 2001
Posts: 245
posted
Jul 17, 2002 09:07:00
0
An empty implementation is provided by
javax.servlet.GenericServlet
so that you dont have to implement it if you dont need to.
chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: init() method
Similar Threads
difference b/w init() and init( config)
Context
Call destroy() inside init()
Garbage Chatacters
init of servlets and jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter