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 TLDB、Scriptlet code is NOT legal in the body of st:simple.C、Add scripting-en

题目

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

相似考题
更多“Assume the tag h”相关问题
  • 第1题:

    Tag文件中的tag指令可以设置哪些属性的值?


    正确答案:body-content、language、import、pageEncoding 。

  • 第2题:

    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

    正确答案:C

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

  • 第4题:

    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

  • 第5题:

    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

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

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

  • 第8题:

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

  • 第9题:

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

    4 to 6 times the tag beaconing rate

    B

    6 to 8 times the tag beaconing rate

    C

    8 to 10 times the tag beaconing rate

    D

    10 to 12 times the tab beaconing rate


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

  • 第10题:

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


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

  • 第11题:

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


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

  • 第12题:

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

  • 第13题:

    What is TCI?()

    • A、Tag Calling Interface
    • B、Tag Control Identifier
    • C、ToS Class Interface
    • D、Tag Control Information

    正确答案:D

  • 第14题:

    The tag timeout value for a cisco wireless location appliance should be set to which tag beacon rate?()

    • 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

    正确答案:C

  • 第15题:

    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

  • 第16题:

    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

  • 第17题:

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


    正确答案:数据流

  • 第18题:

    多选题
    You create an ASP.NET page that contains the following tag.  Page Name  You need to write code that will change the contents of the tag dynamically when the page is loaded. What are two possible ways to achieve this goal?()
    A

    this.hdr1.InnerHtml = Text;

    B

    (hdr1.Parent as HtmlGenericControl).InnerText = Text;

    C

    HtmlGenericControl h1 = this.FindControl(hdr1) as HtmlGenericControl;h1.InnerText = Text;

    D

    HtmlGenericControl h1 = Parent.FindControl(hdr1) as HtmlGenericControl;h1.InnerText = Text;


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

  • 第19题:

    单选题
    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”);


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

  • 第20题:

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


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

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


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

  • 第22题:

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

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

  • 第23题:

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

  • 第24题:

    单选题
    The tag timeout value for a cisco wireless location appliance should be set to which tag beacon rate?()
    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


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