• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Context question  RSS feed

 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given:
String v = getServletContext().getInitParameter("abc"); is an httpservlet and a web app D.D that contains:


Which one is true??


Thanks in advance.
 
Milesh Dcunha
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer: A. The abc initialization parameter cannot be set programmatically.
[ June 27, 2006: Message edited by: Milesh Dcunha ]
 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jas Oberai:

Which one is true??


Thanks in advance.[/QB]



Only servlet init params can be retrieved using getServletConfig().getInitParameter("abc");
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Friends for all your help..really appreciate it from the core of my heart...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!