参考答案和解析
正确答案:C,E,F
更多“Which three are valid values for the body-content attribute of a tag directive in a tag file?()A、ELB、JSPC、EmptyD、DynamicE、ScriptlessF、Tagdependent”相关问题
  • 第1题:

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

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

    正确答案:B

  • 第2题:

    Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()

    • A、Every  tag must have at least one  tag.
    • B、A  tag can have many  tags.
    • C、A given  tag can apply to only one  tag.
    • D、A given  tag can contain from zero to many  tags.
    • E、It is possible to construct a valid  tag such that,for a given resource,no user rolescan access that resource.

    正确答案:B,E

  • 第3题:

    Under what two circumstances is the set JspBody method NOT called in a tag class that implements the Simple Tag interface? ()

    • A、 The tag is invoked without a body.
    • B、 The doTAb method throws an exception.
    • C、 The  element has the value empty.
    • D、 The tag is called with the attribute skip-body=true

    正确答案:A,C

  • 第4题:

    Tag文件中的attribute指令有怎样的作用? 


    正确答案:使用attribute指令可以动态地向该Tag文件传递对象的引用。

  • 第5题:

    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

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

    正确答案:A,C,E

  • 第7题:

    单选题
    The tag timeout value for a Cisco Wireless Location Appliance should be set to which tag beaconrate?()
    A

    4 to 6 times the tag beaconing rate

    B

    10 to 12 times the tab beaconing rate

    C

    8 to 10 times the tag beaconing rate

    D

    6 to 8 times the tag beaconing rate


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

  • 第8题:

    多选题
    Which three values are valid parameters for the DO_KEY built-in?()
    A

    ENTER

    B

    GO_ITEM

    C

    VALIDATE

    D

    EXIT_FORM

    E

    EXECUTE_QUERY


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

  • 第9题:

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

  • 第10题:

    多选题
    The Origin attribute describes the source of the BGP prefix. Which three are valid Origin codes?() (Choose three.)
    A

    IGP

    B

    BGP

    C

    EGP

    D

    Incomplete

    E

    Anonymous


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

  • 第11题:

    多选题
    Which two are true about the tag handler referneed by my Tag. ()
    A

    The do Start Tag method is called once.

    B

    The do After Body method is NOT called.

    C

    The EVAL_Page constant is a valid return value for the do End Tag Method.

    D

    the EVAL_BODY_BUFFERED constant is a valid return value for the do Start Tag method.


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

  • 第12题:

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

  • 第13题:

    Assume a tag handler extends TagSupport. Which is used within the tag handler to get an attribute “foo” that is in the application scope?()

    • A、 pageContext.getAttribute(“foo”);
    • B、 getPageContext().getAttribute(“foo”);
    • C、 pageContext.getApplicationScope(“foo”);
    • D、 pageContext.getAttribute(“foo”,pageContext.APPLICATION_SCOPE).getAttribute(“foo”);
    • E、 getPageContext().getScope(pageContext.APPLICATION_SCOPE).getAttribute(“foo”);

    正确答案:D

  • 第14题:

    Given the Tag:   Assuming the tag referenced by my Tags: get Advice uses the Classic event model,  which is true?()

    • A、 The do After Body method is called.
    • B、 The doEnd Tag method is NOT called.
    • C、 The type attribute may be specified in the TLD
    • D、 The do Start Tag Method must always return SKIP_BODY.
    • E、 The TLD for this tag must NOT include a  tag.

    正确答案:C

  • 第15题:

    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

  • 第16题:

    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

  • 第17题:

    A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page?()

    • A、<prefix:myTag a="foo" b="bar" c="baz" />
    • B、<prefix:myTag attributes={"foo","bar","baz"} />
    • C、<prefix:myTag jsp:attribute a="foo" b="bar" c="baz" />
    • D、<prefix:myTag><jsp:attribute name="a">foo</jsp:attribute><jsp:attribute name="b">bar</jsp:attribute><jsp:attribute name="c">baz</jsp:attribute>. </prefix:myTag>

    正确答案:A,B,D

  • 第18题:

    The Origin attribute describes the source of the BGP prefix. Which three are valid Origin codes?() (Choose three.)

    • A、IGP
    • B、BGP
    • C、EGP
    • D、Incomplete
    • E、Anonymous

    正确答案:A,C,D

  • 第19题:

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

  • 第20题:

    问答题
    Tag文件中的attribute指令有怎样的作用?

    正确答案: 使用attribute指令可以动态地向该Tag文件传递对象的引用。
    解析: 暂无解析

  • 第21题:

    单选题
    Given the Tag:   Assuming the tag referenced by my Tags: get Advice uses the Classic event model,  which is true?()
    A

     The do After Body method is called.

    B

     The doEnd Tag method is NOT called.

    C

     The type attribute may be specified in the TLD

    D

     The do Start Tag Method must always return SKIP_BODY.

    E

     The TLD for this tag must NOT include a  tag.


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

  • 第22题:

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

  • 第23题:

    多选题
    Under what two circumstances is the set JspBody method NOT called in a tag class that implements the Simple Tag interface? ()
    A

    The tag is invoked without a body.

    B

    The doTAb method throws an exception.

    C

    The  element has the value empty.

    D

    The tag is called with the attribute skip-body=true


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