This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet initialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
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: 1510
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
 
Have you checked out Aspose?
 
subject: Servlet initialization
 
It's not a secret anymore!