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 don't understand this answer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "don Watch "don New topic

don't understand this answer

J. Kevin Robbins

Joined: Dec 16, 2010
Posts: 826

Maybe this belongs in Mock Exams Errata, but I'm not sure it's errata, maybe just my lack of knowledge. This is from the JavaRanch mock exam.

(rats, can't figure out how to paste an image)

Anyway, it's question bank id 9, "To map a specific URL to your servlet, which element must be included in your Deployment Descriptor?"

The answer is in the form "<!ELEMENT servlet-mapping (servlet-name, url-pattern)>"

Please explain this format, especially the "<!ELEMENT" part. I've never seen anything like this in all the study materials and it's obviously not an excerpt from a deployment descriptor, so I'm very confused.

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60748


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
J. Kevin Robbins

Joined: Dec 16, 2010
Posts: 826

Thanks! A difficult read, but now I understand.
I agree. Here's the link:
subject: don't understand this answer
Similar Threads
DD Doubt
doubt regarding mock exam question
Is JavaRanch's SCWCD Mock Exam compliant w/ Sun's 310-81?
Is there a way to Invoke a Servlet without having any Servlet Mapping Data in web.xml
SCWCD ExKit, Chapter 5, question 1