File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Why be use init method 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 locked New topic
Author

Why be use init method

rinku jain
Greenhorn

Joined: Jan 04, 2011
Posts: 26
what is the use of init method ???
initialization of servlet code can also be done within
constructor
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2896
    
    1

http://www.coderanch.com/how-to/java/ServletsFaq#lifecycle


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
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: Why be use init method
 
Similar Threads
getInitParameter method in ServletContext and ServletConfig
init(servletconfig)
loading of static attributtes
Difference between init and servlet constructor
Servlet's init() and destroy() method and constructors