aspose file tools
The moose likes Servlets and the fly likes Diff between getInitParameter()  in ServletConfig.& ServletContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Diff between getInitParameter()  in ServletConfig.& ServletContext" Watch "Diff between getInitParameter()  in ServletConfig.& ServletContext" New topic
Author

Diff between getInitParameter() in ServletConfig.& ServletContext

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
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

Joined: Jan 10, 2002
Posts: 61994
    
  67

One returns the init params for the servlet, the other the context params for the web app.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: Diff between getInitParameter() in ServletConfig.& ServletContext