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

Diff between getInitParameter() in ServletConfig.& ServletContext

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

Both ServletConfig & ServletContext have the following methods:
1. getInitParameter()
2. getInitParameterNames()

Is there a difference between these?
Regards,
Saj
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One returns the init params for the servlet, the other the context params for the web app.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic