This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Servlets and the fly likes getInitParameter() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "getInitParameter()" Watch "getInitParameter()" New topic


Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Hi, I have a question about getInitParameter((String)paramName) and getInitParameterNames(). Are they methods of HttpServlet or ServletConfig? I have seen aServletConfig.getParameter(paramName) called in the public void init(ServletConfig aServletConfig) method. I also saw getInitParameterNames() called within doGet() as a HttpServlet method.
Please help clarify.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
they are two different methods, with different names, defined in different classes. Is this a problem?

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Hi Frank, sorry, I am just wondering if the initParameter that the two methods refer to are the same as specified in Web.xml?
Have you tried LearnNowOnline?
subject: getInitParameter()