This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes init() in HttpServlet 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
Bookmark "init() in HttpServlet" Watch "init() in HttpServlet" New topic
Author

init() in HttpServlet

Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Hi, I have seen either
public void init(){} and public void init(aServletConfig){} used as init for HttpzServlet. Which one is correct? And why two methods?
Thanks
Paul Wetzel
Ranch Hand

Joined: Nov 02, 1999
Posts: 107
did you check out this post? http://www.javaranch.com/ubb/Forum7/HTML/001528.html
hope that helps
paul
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: init() in HttpServlet
 
Similar Threads
what is the order of execution
init() about servlet life cycle ?
what are the return values of init method in servlets
Initialization Blocks
Which one gets first executed ?????????