CMS专题

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

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

第1题:

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.<%@ taglib prefix="x" 2.tagdir="/WEB-INF/tags/alpha" %> 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.

正确答案:B,E

第2题:

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

第3题:

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

正确答案:A,C,E

第4题:

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

第5题:

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

第6题:

Given in a single JSP page: <%@ taglib prefix=’java’ uri=’myTags’ %> <%@ taglib prefix=’JAVA’ uri=’moreTags’ %>  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’.

正确答案:A,B

第7题:

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

第8题:

Which element is the parent of the  tag in the web application deployment descriptor? ()

  • A、 <web-app> 
  • B、 <filters> 
  • C、 <servlet> 
  • D、 <filter-list> 

正确答案:A

第9题:

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

第10题:

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

更多相关问题