• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HFSJ Mock Exam Ch 11

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 528
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic