Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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: 64629
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