关于JSP标记文件下列说法不正确的是()  A、Tag File是JSP2.0新增的功能B、Tag File是JSP1.2新增的功能C、Tag File可以让网页开源直接使用Jsp语法制作标签D、Tag File的扩展名可以是.tag

题目

关于JSP标记文件下列说法不正确的是()  

  • A、Tag File是JSP2.0新增的功能
  • B、Tag File是JSP1.2新增的功能
  • C、Tag File可以让网页开源直接使用Jsp语法制作标签
  • D、Tag File的扩展名可以是.tag

相似考题
更多“关于JSP标记文件下列说法不正确的是()  A、Tag File是JSP2.0新增的功能B、Tag File是JSP1.2新增的功能C、Tag File可以让网页开源直接使用Jsp语法制作标签D、Tag File的扩展名可以是.tag”相关问题
  • 第1题:

    A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed.  Which two are true? ()

    • A、 A  element in the echo tag LTD must have the value JSP
    • B、 The echo tag handler must define the setAttribute (String key, String value) method
    • C、 The true element must appear in the echo tag TLD
    • D、 The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interface
    • E、 The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface

    正确答案:C,E

  • 第2题:

    Assume the tag handler for a st:simple tag extends Simple Tag Support. In what way can scriptlet code beused in the body of st:simple?()

    • A、Set the body content type to JSP in the TLD
    • B、Scriptlet code is NOT legal in the body of st:simple.
    • C、Add scripting-enabled="true" to the start tag for the st:simple element
    • D、Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag

    正确答案:B

  • 第3题:

    在JSP中使用()指令来声明对标签的引用

    • A、<@taglib>    
    • B、<taglib> 
    • C、<tag>  
    • D、<attribute>

    正确答案:A

  • 第4题:

    标记交换是基于路由分配Tag,而不是按()属性。Tag交换机根据分组携带的Tag标记以及自己所维持的Tag前传信息进行分组前传。


    正确答案:数据流

  • 第5题:

    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

  • 第6题:

    Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()

    • A、 Set the body content type to JSP in the TLD
    • B、 Scriptlet code is NOT legal in the body of st:simple
    • C、 Add scripting-enabled= “true” to the start tag for the st:simple element
    • D、 Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and      place the scriptlet code in the body of that tag.

    正确答案:B

  • 第7题:

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

  • 第8题:

    单选题
    Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()
    A

     Set the body content type to JSP in the TLD

    B

     Scriptlet code is NOT legal in the body of st:simple

    C

     Add scripting-enabled= “true” to the start tag for the st:simple element

    D

     Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and      place the scriptlet code in the body of that tag.


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

  • 第9题:

    填空题
    标记图像文件格式TIFF(Tag Image File Format)是Mac中广泛使用的图像格式,它由Aldus和微软联合开发,它的特点是()、()。

    正确答案: 图像格式复杂、存贮信息多
    解析: 暂无解析

  • 第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题:

    多选题
    Which three are valid values for the body-content attribute of a tag directive in a tag file?()
    A

    EL

    B

    JSP

    C

    Empty

    D

    Dynamic

    E

    Scriptless

    F

    Tagdependent


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

  • 第12题:

    单选题
    Assume the tag handler for a st:simple tag extends Simple Tag Support. In what way can scriptlet code beused in the body of st:simple?()
    A

    Set the body content type to JSP in the TLD

    B

    Scriptlet code is NOT legal in the body of st:simple.

    C

    Add scripting-enabled=true to the start tag for the st:simple element

    D

    Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag


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

  • 第13题:

    PHP的文件上传功能,需要在php.ini配置当中,开启哪项功能?()

    • A、display_errors=on
    • B、file_uploads=on
    • C、short_open_tag=On
    • D、以上都不正确

    正确答案:B

  • 第14题:

    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

  • 第15题:

    下列对custom tags的论述哪个不正确()

    • A、是开发者自己定义的tag,可以在JSP页面中使用
    • B、JSP中定制标记符,实质上就是以标记的形式封装了一个俱有独立功能的Java类
    • C、必须依靠TLD文件实现custom tag到实现类的映射
    • D、是某些厂商自己实现的JSP扩展

    正确答案:D

  • 第16题:

    使用自定义标签时,要为JSP引擎提供有关自定义标签的相关信息,下列信息描述语句正确的是()。

    • A、<tag-info>
    • B、<tag-desc>
    • C、<taglib>
    • D、<tag>

    正确答案:C

  • 第17题:

    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

  • 第18题:

    Which three are valid values for the body-content attribute of a tag directive in a tag file?()

    • A、EL
    • B、JSP
    • C、Empty
    • D、Dynamic
    • E、Scriptless
    • F、Tagdependent

    正确答案:C,E,F

  • 第19题:

    单选题
    关于JSP标记文件下列说法不正确的是()
    A

    Tag File是JSP2.0新增的功能

    B

    Tag File是JSP1.2新增的功能

    C

    Tag File可以让网页开源直接使用Jsp语法制作标签

    D

    Tag File的扩展名可以是.tag


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

  • 第20题:

    填空题
    标记交换是基于路由分配Tag,而不是按()属性。Tag交换机根据分组携带的Tag标记以及自己所维持的Tag前传信息进行分组前传。

    正确答案: 数据流
    解析: 暂无解析

  • 第21题:

    多选题
    A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed.  Which two are true? ()
    A

    A  element in the echo tag LTD must have the value JSP

    B

    The echo tag handler must define the setAttribute (String key, String value) method

    C

    The true element must appear in the echo tag TLD

    D

    The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interface

    E

    The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface


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

  • 第22题:

    单选题
    下列对custom tags的论述哪个不正确()
    A

    是开发者自己定义的tag,可以在JSP页面中使用

    B

    JSP中定制标记符,实质上就是以标记的形式封装了一个俱有独立功能的Java类

    C

    必须依靠TLD文件实现custom tag到实现类的映射

    D

    是某些厂商自己实现的JSP扩展


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

  • 第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
    解析: 暂无解析