• Post Reply Bookmark Topic Watch Topic
  • New Topic

init(ServletConfig)  RSS feed

 
Chintu Singh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All,
I have a small doubt in Servlets.

Does container always call init(ServletConfig)? or it is called only if we have init parameters in DD.
What is the purpose of non-arg init(), if Container calls only init(ServletConfig).

Please help.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your servlet should implement the no-args version.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!