What statement is true?

Given the portion of a valid Java EE web application’s directory structure:

You want to know whether File1.html, File2.html, and/or File3.html is protected from direct access
by your web client’s browsers. What statement is true?

Given the portion of a valid Java EE web application’s directory structure:

You want to know whether File1.html, File2.html, and/or File3.html is protected from direct access
by your web client’s browsers. What statement is true?

A.
All three files are directly accessible.

B.
Only File1.html is directly accessible.

C.
Only File2.html is directly accessible.

D.
Only File3.html is directly accessible.

E.
Only File1.html and File2.html are directly accessible.

F.
Only File1.html and File3.html are directly accessible.

G.
Only File2.html and File3.html are directly accessible.

Explanation:
Note:
* WEB-INF is the folder just under the root of a WAR that holds information that you don’t want to
be accessible to a client via a URL request. Specifically, it holds the web.xml, classes, and lib
directories, but you can put anything you want to hide from the client there.
* META-INF is what discriminates a JAR file from a plain ZIP file. It holds the manifest file and may
hold other deployment information as needed.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Sletje

Sletje

the image is missing.

giuseppe

giuseppe

I’ve found the immage

MyApp
|
|– Directory1
| |– File1.html
|
|– META-INF
| |– File2.html
|
|– WEB-INF
|– File3.html

giuseppe

giuseppe

Given the above image the answer is B