• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question 60 (Head First)

 
will hrock
Greenhorn
Posts: 9
  • 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.

Answer: A and C

but i guess option D is correct as well, because the JSP has application and config implicit variables that can get init parameters, is that ok ?
thanks
 
geeta vemula
Ranch Hand
Posts: 208
 
will hrock
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, but this link is about getting initialization parameters with EL, and is the answer D correct ?
 
Tony Tung
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello , I supose that Jsp implict variable not include servlet parameter part .

is right ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic