Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HSFJ exam doubt

 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • 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

 
Vishal Chugh
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Your Welcome Ma'm!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic