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.
您可能感興趣的試卷
你可能感興趣的試題
Given:
11.<servlet>
12.<servlet-name>catalog</servlet-name>
13.<jsp-file>/catalogTemplate.jsp</jsp-file>
14.<load-on-startup>10</load-on-startup>
15.</servlet>
Which two are true?()
A.Line 13 is not valid for a servlet declaration.
B.Line 14 is not valid for a servlet declaration.
C.One instance of the servlet will be loaded at startup.
D.Ten instances of the servlet will be loaded at startup.
E.The servlet will be referenced by the name catalog in mappings.
A./classes
B./index.html
C./MANIFEST-INF
D./WEB-INF/web.xml
E./WEB-INF/classes
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 the top-level directory, repackage the WAR, and place that WAR file in your webapp’s WEB-INF directory.
A.
B.
C.
D.
You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war.
Which two are true about the WAR file?()
A.At deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.
B.At deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.
C.It can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.
D.At deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.
最新試題
Which is true about the web container request processing model?()
Click the Exhibit button.The attribute "name" has a value of "Foo,"What is the result if this tag handler’s tag is invoked?()
Given a web application in which the request parameter productID contains a product identifier.Which twoEL expressions evaluate the value of the productID?()
Your company has a corporate policy that prohibits storing a customer’s credit card number in anycorporate database. However, users have complained that they do NOT want to re- enter their credit cardnumber for each transaction. Your management has decided to use client-side cookies to record the user’scredit card number for 120 days. Furthermore, they also want to protect this information during transit fromthe web browser to the web container; so the cookie must only be transmitted over HTTPS.Which codesnippet creates the "creditCard" cookie and adds it to the out going response to be stored on the user’s webbrowser?()
You are building a web application with a scheduling component. On the JSP, you need to show the currentdate, the date of the previous week, and the date of the next week. To help you present this information,you have created the following EL functions in the ’d’ namespace: name: curDate; signature: java.util.DatecurrentDate() name: addWeek; signature: java.util.Date addWeek(java.util.Date, int) name: dateString;signature:java.util.String getDateString(java.util.Date)Which EL code snippet will generate the string for the previousweek?
Click the ’Select and Place’ button.Place the events in the order they occur.
Click the ’Select and Place’ button.Place the events in the order they occur.
The JSP developer wants a comment to be visible in the final output to the browser.Which comment styleneeds to be used in a JSP page?()
Click the ’Select and Place’ button.Place the events in the order they occur.
Which two are valid and equivalent?()