• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFJS (V2) Final Mock Question 60 is wrong?

 
Kay Li
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

When comparing servlet initialization parameters to context initialization parameters, which are true for both? (Choose all that apply.)
A. In their respective DD tags, they both have a <param-name> and a <param-value> tag.
B. Their respective DD tags are both placed directly under the <web-app> tag.
C. Their respective methods used to retrieve initialization parameter values are both called getInitParameter.
D. Both can be directly accessed from a JSP.
E. Only changes to context initialization parameters in the DD can be accessed without redeploying the web application.

Book's answer: AC

I think it should be ACD
The book explains '-Option D: only context params can be directly accessed from JSPs'. But JSPs have both application and config implicit objects. They can be used to access init parameters respectively.

What do you guys think?

Kay
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this question is related to this FAQ.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic