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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 61064
    
  66

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Diff between getInitParameter() in ServletConfig.& ServletContext