单选题You are creating a content management system (CMS) with a web application front-end. The JSP thatdisplays a given document in the CMS has the following general structure: 1.  2.  ... 11. ...  ... ... 99.  The citation tag must store information in the 

题目
单选题
You are creating a content management system (CMS) with a web application front-end. The JSP thatdisplays a given document in the CMS has the following general structure: 1.  2.  ... 11. ...  ... ... 99.  The citation tag must store information in the document tag for the document tag to generate a referencesection at the end of the generated web page. The document tag handler follows the Classic tag model andthe citation tag handler follows the Simple tag model. Furthermore, the citation tag could also be embeddedin other custom tags that could have either the Classic or Simple tag handler model. Which tag handlermethod allows the citation tag to access the document tag?()
A

public void doTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}

B

public void doStartTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}

C

public void doTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }

D

public void doStartTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }


相似考题

3. You are creating a content management system (CMS) with a web application front-end. The JSP thatdisplays a given document in the CMS has the following general structure: 1. <%-- tag declaration --%> 2.  ... 11. ...  ... ... 99.  The citation tag must store information in the document tag for the document tag to generate a referencesection at the end of the generated web page. The document tag handler follows the Classic tag model andthe citation tag handler follows the Simple tag model. Furthermore, the citation tag could also be embeddedin other custom tags that could have either the Classic or Simple tag handler model. Which tag handlermethod allows the citation tag to access the document tag?()A、public void doTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}B、public void doStartTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}C、public void doTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }D、public void doStartTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }

参考答案和解析
正确答案: A
解析: 暂无解析
更多“单选题You are creating a content management system (CMS) with a web application front-end. The JSP thatdisplays a given document in the CMS has the following general structure: 1.  2.  ... 11. ...  ... ... 99.  The citation tag must store information in the ”相关问题
  • 第1题:

    Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()

    • A、Store the data in a public instance variable in the servlet.
    • B、Add an attribute to the request object before using the request dispatcher.
    • C、Add an attribute to the context object before using the request dispatcher.
    • D、This CANNOT be done as the tag handler has no means to extract this data.

    正确答案:B

  • 第2题:

    When integrating a media server into a home theater, which of the following terms BEST describes the technology used to protect the interest of copyright holders (e.g. multimedia content)?()

    • A、Digital Rights Management (DRM)
    • B、MPEG Layer-3 (MP3)
    • C、Internet Key Exchange (IKE)
    • D、Content Management System (CMS)

    正确答案:A

  • 第3题:

    Which database does WX Central Management System (WX CMS) software use to store historical data?()

    • A、Oracle
    • B、MySQL
    • C、Sybase
    • D、Microsoft Access

    正确答案:B

  • 第4题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application uses Session objects. You are modifying the application to run on a Web farm. You need to ensure that the application can access the Session objects from all the servers in the Web farm. You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost.  What should you do?()

    • A、Use the InProc Session Management mode to store session data in the ASP.NET worker process. 
    • B、Use the SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database. 
    • C、Use the SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm. 
    • D、Use the StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm. 

    正确答案:B

  • 第5题:

    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0. Now, you are deploying the ASP.NET Web application to a remote server. You are required to select a deployment method that will make sure that all Internet Information Services (IIS) settings, in addition to the Web content, are deployed to the remote server. Which of the following deployment methods will you select to accomplish this?()

    • A、Web Setup project
    • B、Web-based deployment
    • C、Deployment manifest
    • D、Web Deployment Tool

    正确答案:D

  • 第6题:

    单选题
    You install the Web Server (IIS) role on a new server that runs Windows Server 2008.  You install a Microsoft .NET Framework 1.0 application on a Web site on the Web server. The company security policy states that all applications must run by using the minimum level of permission.  You need to configure the Web site application so that it has the permissions to execute without creating any other content and without accessing any operating system components. What should you do?()
    A

    Set the .NET Framework trust level to Full for the Web site.

    B

    Set the .NET Framework trust level to Low for the Web site.

    C

    Set the .NET Framework trust level to High for the Web site.

    D

    Set the .NET Framework trust level to Medium for the Web site.


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

  • 第7题:

    单选题
    Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()
    A

    Store the data in a public instance variable in the servlet.

    B

    Add an attribute to the request object before using the request dispatcher.

    C

    Add an attribute to the context object before using the request dispatcher.

    D

    This CANNOT be done as the tag handler has no means to extract this data.


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

  • 第8题:

    单选题
    You are creating an online catalog application that will display product information on the company Web site. The product data is stored in a SQL Server 2005 database. The data is stored as relational data but must be passed to the application as an XML document by using FOR XML. You test your application and notice that not all of the items matching your query appear in the XML document. Only those products that have values for all elements in the schema appear.   You need to modify your Transact-SQL statement so that all products matching your query appear in the XML document. What should you do?()
    A

    Add an XML index to the table that contains the product data.

    B

    Add the XSINIL argument to the ELEMENTS directive in the query.

    C

    Add a HAVING clause to the query.

    D

    Add the replace value of clause to the query.


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

  • 第9题:

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


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

  • 第10题:

    多选题
    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
    解析: 暂无解析

  • 第11题:

    单选题
    When integrating a media server into a home theater, which of the following terms BEST describes the technology used to protect the interest of copyright holders (e.g. multimedia content)?()
    A

    Digital Rights Management (DRM)

    B

    MPEG Layer-3 (MP3)

    C

    Internet Key Exchange (IKE)

    D

    Content Management System (CMS)


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

  • 第12题:

    单选题
    You have a Web server that runs Windows Server 2003 Service Pack 2 (SP2). You need to collect the following information from the Web server: Unauthorized attempts to upload filesUnsuccessful commands that try to run executables You must achieve this goal by using the minimum amount of administrative effort.  What should you do?()
    A

    From Network Monitor, start a capture.

    B

    From the Performance snap-in, create a counter log.

    C

    From Internet Information Services (IIS) Manager, enable logging.

    D

    From Computer Management, modify the properties of the application log.


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

  • 第13题:

    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

  • 第14题:

    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

  • 第15题:

    You install the Web Server (IIS) role on a new server that runs Windows Server 2008.  You install a Microsoft .NET Framework 1.0 application on a Web site on the Web server. The company security policy states that all applications must run by using the minimum level of permission.  You need to configure the Web site application so that it has the permissions to execute without creating any other content and without accessing any operating system components. What should you do?()

    • A、Set the .NET Framework trust level to Full for the Web site.
    • B、Set the .NET Framework trust level to Low for the Web site.
    • C、Set the .NET Framework trust level to High for the Web site.
    • D、Set the .NET Framework trust level to Medium for the Web site.

    正确答案:A

  • 第16题:

    Your company has an Active Directory Domain Services (AD DS) domain. You virtualize applications by using Microsoft Application Virtualization (App - V). You are creating an application virtualization package. Which sh ould you use?()

    • A、Microsoft Application Virtualization Sequencer
    • B、Microsoft Application Virtualization Desktop Client
    • C、Microsoft System Center Application Virtualization Streaming Server
    • D、Microsoft System Center Application Virtualization Management Server

    正确答案:A

  • 第17题:

    单选题
    Your company has an Active Directory Domain Services (AD DS) domain. You virtualize applications by using Microsoft Application Virtualization (App-V). You are creating an application virtualization package. Which should you use?()
    A

    Microsoft Application Virtualization Sequencer

    B

    Microsoft Application Virtualization Desktop Client

    C

    Microsoft System Center Application Virtualization Streaming Server

    D

    Microsoft System Center Application Virtualization Management Server


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

  • 第18题:

    多选题
    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,B
    解析: 暂无解析

  • 第19题:

    单选题
    Which database does WX Central Management System (WX CMS) software use to store historical data?()
    A

    Oracle

    B

    MySQL

    C

    Sybase

    D

    Microsoft Access


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

  • 第20题:

    单选题
    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0. Now, you are deploying the ASP.NET Web application to a remote server. You are required to select a deployment method that will make sure that all Internet Information Services (IIS) settings, in addition to the Web content, are deployed to the remote server. Which of the following deployment methods will you select to accomplish this?()
    A

    Web Setup project

    B

    Web-based deployment

    C

    Deployment manifest

    D

    Web Deployment Tool


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

  • 第21题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application uses Session objects. You are modifying the application to run on a Web farm. You need to ensure that the application can access the Session objects from all the servers in the Web farm. You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost.  What should you do?()
    A

    Use the InProc Session Management mode to store session data in the ASP.NET worker process. 

    B

    Use the SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database. 

    C

    Use the SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm. 

    D

    Use the StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm. 


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

  • 第22题:

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


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

  • 第23题:

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


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