Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

init() method

 
Ravi Vemula
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a servlet be intialized without calling its init() method???
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That method is part of the official lifecycle, so it will be called. Your servlet is free, of course, not to do anything in it.
 
jitu mishra
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Init is the part life cycle of servlet and if you not given also init it will automatically set the configuration for servlet intialization .............
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch Ravi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic