Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ mock exam Chapter 8 Qu 2

 
Art Van Delay
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. Should the question:

"Given that a web application stores the webmaster email address in the servlet context initialization parameter called master-email. Which retrieves that value?"


Be "... in the application context initialization parameter ..."

because the EL implicit object initParam (which is the answer) is not for servlet init parameters.

Thanks in advnace.
 
Sebastien Col
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Check the page 381 of the book. It says that the "initParam" implicit object is a Map that contains context init parameters.
When you context, think application. Servlet init parameters are available from a ServletConfig.
This is why the B answer is the correct answer.

Sebastien
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic