niusouti.com

多选题A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1. 3. The sort.jsp page is requested. Which two are true?()ATag files can only be acc

题目
多选题
A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1. 3. The sort.jsp page is requested. Which two are true?()
A

Tag files can only be accessed using a tagdir attribute.

B

The sort.jsp page translates successfully and invokes the tag defined by beta.tag.

C

The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.

D

Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.

E

The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.


相似考题
更多“A web application contains a tag file called beta.tag in /WE”相关问题
  • 第1题:

    You want to create a valid directory structure for your Java EE web application, and your application usestag files and a JAR file. Which three must be located directly in your WEB-INF directory(NOT in asubdirectory of WEB-INF)?()

    • A、The JAR file
    • B、A directory called lib
    • C、A directory called tags
    • D、A directory called TLDs
    • E、A directory called classes
    • F、A directory called META-INF

    正确答案:B,C,E

  • 第2题:

    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.

    正确答案:A,C

  • 第3题:

    You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users. The Web application runs as CONTOSO/ASPNET. You deny anonymous access to the application in IIS. You add the following XML segment in the Web.config file.You need to ensure that the application meets the following requirements:It must impersonate the user when it writes data to the file.It must run as CONTOSO/ASPNET when a user does not access the file. Which two actions should you perform? ()

    • A、Use the following XML segment in the Web.config file. <identity impersonate="false"/>
    • B、Use the following XML segment in the Web.config file. <identity impersonate="true"/>
    • C、Use the following code segment to access the file. Dim wp As WindowsPrincipal = _CType(HttpContext.Current.User, WindowsPrincipal) Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent() Dim wic As WindowsImpersonationContext = wi.Impersonate()' Access the file herewic.Undo()
    • D、Use the following code segment to access the file. Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent()Dim wic As WindowsImpersonationContext = _WindowsIdentity.Impersonate(wi.Token)' Access the file herewic.Undo()

    正确答案:A,C

  • 第4题:

    You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do? ()

    • A、Modify the application settings by using the Web Site Administration Tool.
    • B、Modify the application settings by using the Visual Studio property page editor for the project.
    • C、Modify the application settings by using the resource editor.
    • D、Modify the application settings by using the Visual Studio start options editor.

    正确答案:A

  • 第5题:

    多选题
    You want to create a valid directory structure for your Java EE web application, and your application usestag files and a JAR file. Which three must be located directly in your WEB-INF directory(NOT in asubdirectory of WEB-INF)?()
    A

    The JAR file

    B

    A directory called lib

    C

    A directory called tags

    D

    A directory called TLDs

    E

    A directory called classes

    F

    A directory called META-INF


    正确答案: F,D
    解析: 暂无解析

  • 第6题:

    多选题
    In which three directories, relative to a web application’s root, may a tag library descriptor file reside when deployed directly into a web application?()
    A

    /WEB-INF

    B

    /META-INF

    C

    /WEB-INF/tlds

    D

    /META-INF/tlds

    E

    WEB-INF/resources

    F

    /META-INF/resources


    正确答案: E,C
    解析: 暂无解析

  • 第7题:

    多选题
    Given in a single JSP page:   Which two are true?()
    A

    The prefix ’java’ is reserved.

    B

    The URI ’myTags’ must be properly mapped to a TLD file by the web container.

    C

    A translation error occurs because the prefix is considered identical by the web container.

    D

    For the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.


    正确答案: D,C
    解析: 暂无解析

  • 第8题:

    单选题
    You need to design a configuration for the Microsoft Outlook Web Access servers. What should you do?()
    A

    Create a Network Load Balancing cluster that contains the Outlook Web Access servers

    B

    Create a Microsoft Cluster Server cluster that contains the Outlook Web Access servers

    C

    Create public DNS host (A) resource records for each Outlook Web Access server. Instruct each user to connect to the server that contains his or her mailbox

    D

    Install Microsoft Application Center 2000 on the Outlook Web Access servers. Create a Web cluster that contains all of the Outlook Web Access servers


    正确答案: C
    解析: 暂无解析

  • 第9题:

    单选题
    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.


    正确答案: A
    解析: 暂无解析

  • 第10题:

    多选题
    A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()
    A

    Include a listener directive in a JSP page

    B

    configure a listener in the TLD file using the  element

    C

    Include a  element in the web application deployment descriptor

    D

    configure a listener in the application deployment descriptor, using the  element

    E

    Include a class implementing ServletContextListener as part of the web application deploymen


    正确答案: E,A
    解析: 暂无解析

  • 第11题:

    Which is true about the web container request processing model?()

    • A、The init method on a filter is called the first time a servlet mapped to that filter is invoked.
    • B、A filter defined for a servlet must always forward control to the next resource in the filter chain.
    • C、Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.
    • D、If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.

    正确答案:C

  • 第12题:

    You have a Microsoft ASP.NET Framework version 1.0 application. The application does not use any features that are deprecated in the Microsoft .NET Framework version 3.5. The application runs on Microsoft IIS 6.0.  You need to configure the application to use the ASP.NET Framework version 3.5 without recompiling the application.  What should you do?()

    • A、Edit the ASP.NET runtime version in IIS 6.0. 
    • B、Edit the System.Web section handler version number in the machine.config file. 
    • C、Add the requiredRuntime configuration element to the Web.config file and set the version attribute to v3.5. 
    • D、Add the supportedRuntime configuration element in the Web.config file and set the version attribute to v3.5.

    正确答案:A

  • 第13题:

    You recently developed a Web application that accesses an external Web service to retrieve current exchange rates for Certkiller .com's e-Commerce Web site. The Web service converts USD prices to the customer's local currency. You have stored the URL to the external Web service's endpoint in the section of the Web.config file. The Web application has been successfully deployed to a Certkiller .com Web server named Certkiller -SR14. A few months later the vendor of the Web service changes the port that is used to access the Web service. You need to update the section of the Web application's Web.config file from Certkiller -WS528. You need to ensure that your solution has a minimal impact on customers that may be connected to the e-Commerce Web site. What should you do?()

    • A、 Create a Host entry in the Lmhosts file on Certkiller -SR14. Point the Host entry to the new end point.
    • B、 Use the Copy Web Site function in Visual Studio 2005 to deploy the Web.config file from Certkiller -WS528 to Certkiller -SR14.
    • C、 Create a Web Setup project in Visual Studio 2005 to deploy the Web.config file from Certkiller -WS528 to Certkiller -SR14.
    • D、 Use the Web Site Administration Tool to change the <appSettings> section of the Web.config file.

    正确答案:D

  • 第14题:

    多选题
    You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The application will generate an ID for the user based on the users full name. You need to implement this registration functionality. Which two actions should you perform?()
    A

    Configure the SqlMembershipProvider in the web.config file.

    B

    Configure the SqlProfileProvider in the web.config file.

    C

    Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.

    D

    Create an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.


    正确答案: B,D
    解析: 暂无解析

  • 第15题:

    多选题
    In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()
    A

    /WEB-INF

    B

    /META-INF

    C

    /WEB-INF/tlds

    D

    /META-INF/tlds

    E

    /WEB-INF/resources

    F

    /META-INF/resources


    正确答案: C,E
    解析: 暂无解析

  • 第16题:

    单选题
    You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.  You use Windows Authentication for the application. You set up NTFS file system permissions for the Sales group to access a particular file. You discover that all the users are able to access the file.  You need to ensure that only the Sales group users can access the file. What additional step should you perform?()
    A

    Remove the rights from the ASP.NET user to the file. 

    B

    Remove the rights from the application pool identity to the file. 

    C

    Add the <identity impersonate=true/> section to the Web.config file. 

    D

    Add the <authentication mode=[None]> section to the Web.config file.


    正确答案: B
    解析: 暂无解析

  • 第17题:

    多选题
    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.


    正确答案: C,D
    解析: 暂无解析

  • 第18题:

    单选题
    Which element is the parent of the  tag in the web application deployment descriptor? ()
    A

     <web-app> 

    B

     <filters> 

    C

     <servlet> 

    D

     <filter-list> 


    正确答案: C
    解析: 暂无解析

  • 第19题:

    多选题
    You are a systems administrator responsible for managing a Windows Server 2008 Web Server Currently,there are no Web sites configured on the server. You need to configure the server to host two Web applications: Engineering App and Sales App. Both Web applications must be accessible by using HTTPport 80 without the use of host headers. Also, you must protect against problems in one Web applicationaffecting the performance or reliability of the other Web application. Which two steps should you take tomeet these requirements?()
    A

    Create a single Web site that contains both Web applications.

    B

    Create two Web sites, one for each Web application.

    C

    Assign both Web applications to the same application pool.

    D

    Assign each Web application to its own application pool.


    正确答案: B,C
    解析: 暂无解析

  • 第20题:

    单选题
    To take advantage of the capabilities of modern browsers that use web standards, such as XHTML andCSS, your web application is being converted from simple JSP pages to JSP Document format. However,one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in severalweb forms to create screen-specific validation functions and are included in these pages with the followingstatement: 10. 11. 14. 15. Which JSP code snippet declares that this JSP Document is a JavaScript file?()
    A

    <%@ page contentType=’application/javascript’ %>

    B

    <jsp:page contentType='application/javascript' />

    C

    <jsp:document contentType='application/javascript' />

    D

    <jsp:directive.page contentType='application/javascript' />

    E

    No declaration is needed because the web form XHTML page already declares the MIME type of the /scripts/screenFunctions.jsp file in the <script> tag.


    正确答案: D
    解析: 暂无解析