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 difference b/w init() and init( config) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

difference b/w init() and init( config)

preddy Narra
Greenhorn

Joined: Jul 06, 2006
Posts: 12
Hi friends,

What is the difference b/w init() and init(config) methods.

Allways Servlet's init(config) method is called for it's initialization,but why we have init() method.

Thanks in advance.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

preddy Narra
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseRealWords

Abbreviations such as b/w, "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

This, often asked, question is covered in our servlet FAQ page.
http://faq.javaranch.com/search?ServletsFaq
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference b/w init() and init( config)
 
Similar Threads
assertEquals v/s assertSame method
init method of Servlet
doubt in servlet init method
Doubt in Listener
init() vs. static {}