• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init() and init(Servlet Config)

 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know what method does container call first i.e whether init() or init(ServletConfig) ?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The container can only call one of these methods directly. Do you know which one, and why? The javadocs of Servlet and GenericServlet are helpful reading in trying to answer this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic