单选题Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF|  |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from dir

题目
单选题
Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF|  |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from direct access by yourweb 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.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment variable is set to "." (current directory). Which two java commands entered at the command line will run MainClass?()

A.java MainClass if run from the /apps directory

B.java com.company.application.MainClass if run from the /apps directory

C.java -classpath /apps com.company.application.MainClass if run from any directory

D.java -classpath . MainClass if run from the /apps/com/company/application directory

E.java -classpath /apps/com/company/application:. MainClass if run from the /apps directory

F.java com.company.application.MainClass if run from the /apps/com/company/application directory


参考答案:B, C

第2题:

Which two actions protect a resource file from direct HTTP access within a web application?()

  • A、Placing it in the /secure directory
  • B、Placing it in the /WEB-INF directory
  • C、Placing it in the /META-INF/secure directory
  • D、Creating a  element within the deployment descriptor

正确答案:B,C

第3题:

GivenaportionofavalidJavaEEwebapplication’sdirectorystructure:MyApp||--File1.html||--Directory1||--File2.html||--META-INF|--File3.htmlYouwanttoknowwhetherFile1.html,File2.html,and/orFile3.htmlwillbedirectlyaccessiblebyyourwebclient’sbrowsers.Whichstatementistrue?()

A.Allthreefilesaredirectlyaccessible.

B.OnlyFile1.htmlisdirectlyaccessible.

C.OnlyFile2.htmlisdirectlyaccessible.

D.OnlyFile3.htmlisdirectlyaccessible.

E.OnlyFile1.htmlandFile2.htmlaredirectlyaccessible.


参考答案:E

第4题:

Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF|  |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from direct access by yourweb 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.

正确答案:B

第5题:

You are developing several tag libraries that will be sold for development of third-party web applications.You are about to publish the first three libraries as JAR files: container-tags.jar,advanced-html-form-tags.jar, and basic-html-form-tags.jar. Which two techniques are appropriate for packaging the TLD files forthese tag libraries?()

  • A、The TLD must be located within the WEB-INF directory of the JAR file.
  • B、The TLD must be located within the META-INF directory of the JAR file.
  • C、The TLD must be located within the META-INF/tld/ directory of the JAR file.
  • D、The TLD must be located within a subdirectory of WEB-INF directory of the JAR file.
  • E、The TLD must be located within a subdirectory of META-INF directory of the JAR file.

正确答案:B,E

第6题:

假设web应用的文档根目录为MyApp,那么可以从哪里找到database.jar文件()

  • A、MyApp目录下
  • B、MyApp/images目录下
  • C、MyApp/WEB-INF目录下
  • D、MyApp/WEB-INF/lib目录下

正确答案:D

第7题:

Given a portion of a valid Java EE web application’s directory structure: MyApp | |-- File1.html | |-- Directory1 ||-- File2.html| |-- META-INF |-- File3.html You want to know whether File1.html, File2.html, and/or File3.html will be directly accessible by your webclient’s browsers. Which 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.

正确答案:E

第8题:

GivenaportionofavalidJavaEEwebapplication’sdirectorystructure:MyApp||--Directory1||--File1.html||--META-INF||--File2.html||--WEB-INF|--File3.htmlYouwanttoknowwhetherFile1.html,File2.html,and/orFile3.htmlisprotectedfromdirectaccessbyyourwebclient’sbrowsers.Whatstatementistrue?()

A.Allthreefilesaredirectlyaccessible.

B.OnlyFile1.htmlisdirectlyaccessible.

C.OnlyFile2.htmlisdirectlyaccessible.

D.OnlyFile3.htmlisdirectlyaccessible.


参考答案:B

第9题:

Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()

  • A、 /conf/web.xml
  • B、 /WEB-INF/web.xml
  • C、 /conf/server.xml
  • D、 /META-INF/web.xml
  • E、 /WEB-INF/rules.xml
  • F、 /META-INF/server. Xml

正确答案:B

第10题:

After a merger with another small business, your company has inherited a legacy WAR file but the originalsource files were lost. After reading the documentation of that web application,you discover that the WARfile contains a useful tag library that you want to reuse in your own webapp packaged as a WAR file. What do you need to do to reuse this tag library?()

  • A、Simply rename the legacy WAR file as a JAR file and place it in your webapp’s library directory.
  • B、Unpack the legacy WAR file, move the TLD file to the META-INF directory, repackage the whole thingas a JAR file, and place that JAR file in your webapp’s library directory.
  • C、Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to thetop-level directory, repackage the whole thing as a JAR file, and place that JAR file in your webapp’slibrary directory.
  • D、Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to thetop-level directory, repackage the WAR, and place that WAR file in your webapp’s WEB-INF directory.

正确答案:C

更多相关问题