要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()A、〈%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %〉B、〈%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %〉C、〈%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %〉D、〈%@ taglib prefi

题目

要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()

  • A、〈%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %〉
  • B、〈%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %〉
  • C、〈%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %〉
  • D、〈%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %〉

相似考题
更多“要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()A、〈%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %〉B、〈%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %〉C、〈%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %〉D、〈%@ taglib prefi”相关问题
  • 第1题:

    在J2EE中,在my.jsp中使用标记扩展,下列选项正确的是()

    • A、<%@ taglib URL=”/hello”  prefix=”examples”%> 
    • B、<%@ taglib URI=”/hello”  prefix=”examples”%> 
    • C、<%@ taglib url=”/hello”  prefix=”examples”%> 
    • D、<%@ taglib uri=”/hello”  prefix=”examples”%>

    正确答案:D

  • 第2题:

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

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

    正确答案:A

  • 第3题:

    在JSP中,若要在JSP正确使用标签:,在jsp中声明的taglib指令为:<%@tagliburi=“/WEB-INF/myTags.tld”prefix=“()”%>。

    • A、x
    • B、getKing
    • C、myTags
    • D、king

    正确答案:A

  • 第4题:

    在JSP页面上使用JSTL标签时,应使用JSP指令()导入标签库描述符文件。

    • A、 page
    • B、 taglib
    • C、 tag
    • D、 lib

    正确答案:B

  • 第5题:

    在JSP中,()指令用于将文件嵌入JSP页面。

    • A、page
    • B、forward
    • C、include
    • D、taglib

    正确答案:C

  • 第6题:

    JSP的哪个指令允许页面使用者自定义标签库?()

    • A、Include指令
    • B、Taglib指令
    • C、Plugin指令

    正确答案:B

  • 第7题:

    Which the JSTL code snippet can be used to import content from another web resource?()

    • A、 <c:import url=*foo.jsp”/> 
    • B、 <c:import page=*foo.jsp”/> 
    • C、 <c:include url=*foo.jsp”/> 
    • D、 <c:include page=*foo.jsp”/> 
    • E、 Importing cannot be done in JSTL. A standard action must be used instead.

    正确答案:A

  • 第8题:

    单选题
    下面哪个方法不属于JSP指令:()
    A

    <jsp:param name=”username” value=”liu”/>

    B

    <%@include file=”head.jsp”%>

    C

    <%@taglib uri=”/struts.tags” prefix=”s”%>

    D

    <%@page contectType=”texthtml,charset=gb2312”%>


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

  • 第9题:

    单选题
    要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()
    A

    〈%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core %〉

    B

    〈%@ taglib prefix=x uri=http://java.sun.com/jsp/jstl/xml %〉

    C

    〈%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt %〉

    D

    〈%@ taglib prefix=sql uri=http://java.sun.com/jsp/jstl/sql %〉


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

  • 第10题:

    单选题
    在J2EE中,在my.jsp中使用标记扩展,下列选项正确的是()
    A

    <%@ taglib URL=”/hello”  prefix=”examples”%> 

    B

    <%@ taglib URI=”/hello”  prefix=”examples”%> 

    C

    <%@ taglib url=”/hello”  prefix=”examples”%> 

    D

    <%@ taglib uri=”/hello”  prefix=”examples”%>


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

  • 第11题:

    单选题
    在JSP页面上使用JSTL标签时,应使用JSP指令()导入标签库描述符文件。
    A

     page

    B

     taglib

    C

     tag

    D

     lib


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

  • 第12题:

    单选题
    在java程序中的my.jsp中要使用标记扩展,下列选项正确的是()。
    A

    %@taglib URL=“/hello”prefix=“examples”%>

    B

    %taglib URI=“/hello”prefix=“examples”%>

    C

    %@taglib url=“/hello”prefix=“examples”%>

    D

    %@taglib uri=“/hello”prefix=“examples”%>


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

  • 第13题:

    A JSP page contains a taglib directive whose uri attribute has the value dbtags. Which XML element withinthe web application deployment descriptor defines the associated TLD?()

    • A、<tld><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location></tld>
    • B、<taglib><uri>dbtags</uri><location>/WEB-INF/tlds/dbtags.tld</location>. </taglib>
    • C、<tld>. <tld-uri>dbtags</tld-uri>. <tld-location>/WEB-INF/tlds/dbtags.tld</tld-location> . </tld>
    • D、<taglib><taglib-uri>dbtags</taglib-uri><taglib-location>/WEB-INF/tlds/dbtags.tld. </taglib-location>. </taglib>

    正确答案:D

  • 第14题:

    下面哪个方法不属于JSP指令:()

    • A、<jsp:param name=”username” value=”liu”/>
    • B、<%@include file=”head.jsp”%>
    • C、<%@taglib uri=”/struts.tags” prefix=”s”%>
    • D、<%@page contectType=”texthtml,charset=gb2312”%>

    正确答案:A

  • 第15题:

    在java程序中的my.jsp中要使用标记扩展,下列选项正确的是()。

    • A、%@taglib URL=“/hello”prefix=“examples”%>
    • B、%taglib URI=“/hello”prefix=“examples”%>
    • C、%@taglib url=“/hello”prefix=“examples”%>
    • D、%@taglib uri=“/hello”prefix=“examples”%>

    正确答案:D

  • 第16题:

    在JSP中,()动作用于将文件包含入JSP页面。

    • A、page
    • B、forward
    • C、include
    • D、taglib

    正确答案:C

  • 第17题:

    以下有关JSTL的说法不正确的是()。

    • A、JSTL就是一个JSP标签库
    • B、核心标签库为日常任务提供通用支持
    • C、国际化标签库支持多语种的应用程序
    • D、函数标签库提供了许多用于XML处理的标准EL函数

    正确答案:D

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

  • 第19题:

    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

  • 第20题:

    单选题
    JSP标准标签库(JSTL)的标签库描述符文件的后缀是()
    A

    .tld

    B

    .jar

    C

    .jsp

    D

    .class


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

  • 第21题:

    多选题
    当我们要在JSP页面中使用自定义标签时需要()。
    A

    在tld文件中定义标签

    B

    创建一个标签处理器

    C

    引入这个标签的标签库,并指定前缀名

    D

    在JSP页面中使用page指令

    E

    在JSP页面中使用taglib指令


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

  • 第22题:

    单选题
    在JSP中,若要在JSP正确使用标签:,在jsp中声明的taglib指令为:。
    A

    x

    B

    getKing

    C

    myTags

    D

    king


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

  • 第23题:

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

    <@taglib>    

    B

    <taglib> 

    C

    <tag>  

    D

    <attribute>


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