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