• Post Reply Bookmark Topic Watch Topic
  • New Topic

ServletContext v/s init()  RSS feed

 
Rishi Singh
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are advantages of using ServletContextListener above init()?
Don't they do the same thing
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
init() method is for a servlet whereas context is for a whole web app.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!