File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JavaRanch mock exam Q4 - Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JavaRanch mock exam Q4 - " Watch "JavaRanch mock exam Q4 - " New topic

JavaRanch mock exam Q4 -

Jim So

Joined: Mar 18, 2009
Posts: 28
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?
ankit kumar
Ranch Hand

Joined: Apr 28, 2008
Posts: 108
<!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.

Cleared SCJP 1.5 | Cleared SCWCD 5.0
SCDJWS 6 in progress.....
Abdul Rahman
Ranch Hand

Joined: Jul 04, 2008
Posts: 63

&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.

SCJP5, SCWCD5, [scwcd wall of fame]
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: JavaRanch mock exam Q4 -
It's not a secret anymore!