Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init() in HttpServlet

 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you check out this post? http://www.javaranch.com/ubb/Forum7/HTML/001528.html
hope that helps
paul
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic