aspose file tools*
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
Author

HFSJ Mock Exam Ch 11

Kris Lightsey
Greenhorn

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:

<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.myorg.ServletClass</servlet-class>
</servlet>

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: 519

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)

Regards.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA

Live life to an interface, not an implementation!
 
wood burning stoves
 
subject: HFSJ Mock Exam Ch 11