wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JavaRanch mock exam Q4 - " Watch "JavaRanch mock exam Q4 - " New topic
Author

JavaRanch mock exam Q4 -

Jim So
Greenhorn

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


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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JavaRanch mock exam Q4 -
 
Similar Threads
Help on ELEMENT
RMH J2EE WS page 671
EL Function Doubt
Initialization Parameters in servlet And in context-param
ELEMENT init-param(param-name, param-value, description?