Coffee Crem: Chapter 11 Answers
Where can
<init-param>elements appear in the DD? (Choose all that apply.)(Servlet spec pg 107)

A.
As child elements of
<servlet>.
B.
As direct descendants of
<web-application>elements.
C.
Just after the Document Type Declaration.

D.
Inside of
<context-param>elements when you want to declare a context initialization parameter.Note
-Option B is incorrect because web.xml does not contain an element named <web-application>.
-Option D is incorrect because <context-param> elements do not contain <init-param>.
Where do you store Tag Library Descriptors (TLDs), in a web application? (Choose all that apply.)
(JSP spec pg 196)

A.
Only in
/WEB-INF/lib.
B.
Only in
/WEB-INF/classes.
C.
In the
/META-INFdirectory of a JAR file inside/WEB-INF/libD.
At the application’s top-level directory. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access