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


Win a copy of Head First Android this week in the Android forum!
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: 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)

Regards.


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

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