• 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

HSFJ exam doubt

 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which statements concerning /META-INF are true? (Choose all that apply.)

A. This be served directdirectory is optional when creating a WAR file.

B. The contents of this directory can be served directly to clients only if
HTTPS is activated.

C. Servlets can access the contents of the /META-INF directory via methods
in the ServletContext class.

D. Servlets can access the contents of the /META-INF directory via methods
in the ServletConfig class

Given answer is C.
I wonder if we use the servletContext API to get the content of /META-INF directory. Please verify the answer.

Please help

poonam

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, resoures like jars etc can be placed there, and ServletContext API methods : getResource() and getResourceAsStream() can be used to access them .
 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vishal Chugh wrote:Yes, resoures like jars etc can be placed there, and ServletContext API methods : getResource() and getResourceAsStream() can be used to access them .[/quote


Thanks budy

 
Vishal Chugh
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your Welcome Ma'm!!!
reply
    Bookmark Topic Watch Topic
  • New Topic