When comparing servlet intialisation parameters to context initialisation 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 repective DD tags are both placed directly under the <web-app> tag.
C. Their respective methods used to retrieve intialisation parameter values are both called getInitParameter.
D. Both can be directly accessed from a JSP.
E. Only changes to context initialisation parameters in the DD can be accessed without redeploying the web application.
The answers given are A+C, I think the answers should be A,C+D. The reason given for D being incorrect is
Option D: only context params can be directly accessed from JSPs
To me this is wrong, JSP has access to both application (ServletContext) and config (ServletConfig) implicit objects.
If you want to access servlet initialization parameters inside a JSP it is a tricky task. For this you need to treat your JSP as a servlet and also access it as a servlet in browser.
See this thread http://www.coderanch.com/t/177239/java-Web-Component-SCWCD/certification/init-param-jsp