• Post Reply Bookmark Topic Watch Topic
  • New Topic

ServletContext v/s init()

 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!