Oracle
1Z0-899 · Question #192
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…
The correct answer is B. Only File1.html is directly accessible. 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…
Web Application Environment
Question
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?
Options
- AAll three files are directly accessible.
- BOnly File1.html is directly accessible.
- COnly File2.html is directly accessible.
- DOnly File3.html is directly accessible.
- EOnly File1.html and File2.html are directly accessible.
- FOnly File1.html and File3.html are directly accessible.
- GOnly File2.html and File3.html are directly accessible.
How the community answered
(53 responses)- A2% (1)
- B77% (41)
- C11% (6)
- D6% (3)
- G4% (2)
Explanation
- 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.
Topics
#WEB-INF protection#direct file access#web app directory structure#resource visibility
Community Discussion
No community discussion yet for this question.