Two Laptop Bag
The moose likes Servlets and the fly likes Servlet initialization 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
Reply Bookmark "Servlet initialization" Watch "Servlet initialization" New topic
Author

Servlet initialization

sunil kumre
Ranch Hand

Joined: Dec 23, 2000
Posts: 64
Why servlet initialization is done using init() rather than a constructor?
thanks in advance
sunil.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
Constructors for dynamically loaded classes (such as servlets) could not accept arguements. Using the init method serves to provide for any initialization that may be needed.

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet initialization
 
Similar Threads
what is the ServletConfig and usage
Lazy loading in servlet
Servlet Context and Servlet
servlet
Init()