Forums Register Login

JavaRanch mock exam Q4 -

+Pie Number of slices to send: Send
The Element in the Deployment Descriptor for a servlet initialization parameter is :

<!ELEMENT init-param(param-name, param-value, description?)>


Answer is: True.

Im confused. whats this <!ELEMENT tag. i dont recall seeing it in the head-first book?
+Pie Number of slices to send: Send
<!ELEMENT init-param(param-name, param-value, description?)>
in eclipse if you open this in a design tab it will be in that format only.
+Pie Number of slices to send: Send
hi,

&lt;!ELEMENT init-param(param-name, param-value, description?)&gt;
This "&lt;!ELEMENT init-param "means that the init-param is an element of the xml tag that has the above 3 mentioned attributes.

Hope this helps.

+Pie Number of slices to send: Send
 

whats this <!ELEMENT tag.


This a notation used in a DTD. This was used until Servlets 2.3/JSP1.2, but since Servlets2.4/JSP2.0, an XML Schema is used instead. You can check the details in the JSP specification.

Note that the Javaranch mock is a bit old. I think it still contains some SCWCD1.3 stuff in it.
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 945 times.
Similar Threads
EL Function Doubt
ELEMENT init-param(param-name, param-value, description?
Help on ELEMENT
RMH J2EE WS page 671
Initialization Parameters in servlet And in context-param
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:42:23.