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 HFSJ Mock Exam Ch 11 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 "HFSJ Mock Exam Ch 11" Watch "HFSJ Mock Exam Ch 11" New topic

HFSJ Mock Exam Ch 11

Kris Lightsey

Joined: Feb 03, 2005
Posts: 25
In question 4, it asks: "Where can you store the servlet class in the web application?"

Given this in the DD:


The answer listed as being correct is C:
"In /WEB-INF/classes or in a JAR file in /WEB-INF/lib."

I guess we are to assume they really mean:

In the /WEB-INF/classes/com/myorg/ directory?

The servlet is not really in the /WEB-INF/classes directory.
Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 528

What they are trying to tell you is that the servlet (with it's appropriate package structure) is to be placed in those directories. Remeber that com.da.DararaServlet is the fully qualified name of the class. So naturally DararaServlet would be found under WEB-INF/classes/com/da/ (or in a jar file under WEB-INF/lib (again with it's appropriate package structure in the jar file)



Live life to an interface, not an implementation!
I agree. Here's the link:
subject: HFSJ Mock Exam Ch 11
It's not a secret anymore!