This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get values in "init-param"?

 
Hue Cheng
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For <context-params>,
I know it's using context.getInitParameter()
But for <servlet><init-param>
Is it using request.getParameter?
Thanks in advance!!
 
Detlev Beutner
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Hue Cheng,
it's getInitParameter() on the ServletConfig object (retrievable via getServletConfig()).
Hope it helps
Detlev
 
Hue Cheng
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so are you meanig that both <init-param> and <context-params> are retrivable via request.getInitParameter?
Thank you very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic