Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Context question

 
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic