Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ Mock Exam Ch 11

 
Kris Lightsey
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic