This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Why be use init method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2902
    
    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://aspose.com/file-tools
 
subject: Why be use init method
 
Similar Threads
loading of static attributtes
Difference between init and servlet constructor
getInitParameter method in ServletContext and ServletConfig
init(servletconfig)
Servlet's init() and destroy() method and constructors