• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getInitParameter()

 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
they are two different methods, with different names, defined in different classes. Is this a problem?
 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frank, sorry, I am just wondering if the initParameter that the two methods refer to are the same as specified in Web.xml?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic