Which JSP standard action can be used to import content from a resource called foo.jsp?()A、<jsp:import file=’foo.jsp’ />B、<jsp:import page=’foo.jsp’ />C、<jsp:include page=’foo.jsp’ />D、<jsp:include file=’foo.jsp’ />

题目

Which JSP standard action can be used to import content from a resource called foo.jsp?()

  • A、<jsp:import file=’foo.jsp’ />
  • B、<jsp:import page=’foo.jsp’ />
  • C、<jsp:include page=’foo.jsp’ />
  • D、<jsp:include file=’foo.jsp’ />

相似考题
更多“Which JSP standard action can be used to import content from a resource called foo.jsp?()A、jsp:import file=’foo.jsp’ /B、jsp:import page=’foo.jsp’ /C、jsp:include page=’foo.jsp’ /D、jsp:include file=’foo.jsp’ /”相关问题
  • 第1题:

    当在JSP文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()

    • A、〈jsp:include file=”java.util.*” /〉
    • B、〈jsp:include page=”java.util.*” /〉
    • C、〈%@ page import=”java.util.*” %〉
    • D、〈%@ page include=”java.util.*” %〉

    正确答案:C

  • 第2题:

    下列语句正确的有()

    • A、<%@ include file=”head.jsp”%> 
    • B、<% String url=”head.jsp”;%><%@ include file=”url”%> 
    • C、<%@ include file=”head.jsp”?name=”lovo”%> 
    • D、<%String companyName=”lovo”;%>%@include file”head.jsp”?name=‟companyName”% 

    正确答案:B

  • 第3题:

    JSP指令不包括()

    • A、page指令
    • B、taglib指令
    • C、import指令
    • D、include指令

    正确答案:C

  • 第4题:

    Which 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"/>

    正确答案:A

  • 第5题:

    ()可在JSP页面出现该指令的位置处,静态插入一个文件。

    • A、page指令标签
    • B、page指令的import属性
    • C、include指令标签
    • D、include动作标签

    正确答案:C

  • 第6题:

    You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() <title>

    • A、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
    • B、<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
    • C、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
    • D、<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>

    正确答案:A

  • 第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文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()
    A

    〈jsp:include file=”java.util.*” /〉

    B

    〈jsp:include page=”java.util.*” /〉

    C

    〈%@ page import=”java.util.*” %〉

    D

    〈%@ page include=”java.util.*” %〉


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

  • 第9题:

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


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

  • 第10题:

    单选题
    Which JSP standard action can be used to import content from a resource called foo.jsp?()
    A

    <jsp:import file=’foo.jsp’ />

    B

    <jsp:import page=’foo.jsp’ />

    C

    <jsp:include page=’foo.jsp’ />

    D

    <jsp:include file=’foo.jsp’ />


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

  • 第11题:

    单选题
    Which JSTL code snippet can be used to perform URL rewriting?()
    A

    <a href=’<c:url url=foo.jsp/>’ />

    B

    <a href=’<c:link url=foo.jsp/>’ />

    C

    <a href=’<c:url value=foo.jsp/>’ />

    D

    <a href=’<c:link value=foo.jsp/>’ />


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

  • 第12题:

    多选题
    在J2EE中,对于以下的include指令和include动作,书写正确的是()
    A

    <jsp:include page=http://localhost:/8080/my.jsp/>

    B

    <%@ include file=http://localhost:/8080/my.jsp/>

    C

    <jsp:include file=http://localhost:/8080/my.jsp/>

    D

    <%@ include page=http://localhost:/8080/my.jsp/>


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

  • 第13题:

    在J2EE中,对于以下的include指令和include动作,书写正确的是() 

    • A、<jsp:include page=http://localhost:/8080/my.jsp/> 
    • B、<%@ include file=http://localhost:/8080/my.jsp/>
    • C、<jsp:include file=http://localhost:/8080/my.jsp/> 
    • D、<%@ include page=http://localhost:/8080/my.jsp/>

    正确答案:A,B

  • 第14题:

    Every page of your web site must include a common set of navigation menus at the top of the page. Thismenu is static HTML and changes frequently,so you have decided to use JSP’s static import mechanism. Which JSP code snippet accomplishes this goal?()

    • A、<%@ import file=’/common/menu.html’ %>
    • B、<%@ page import=’/common/menu.html’ %>
    • C、<%@ import page=’/common/menu.html’ %>
    • D、<%@ include file=’/common/menu.html’ %>
    • E、<%@ page include=’/common/menu.html’ %>

    正确答案:D

  • 第15题:

    You need to create a JavaBean object that is used only within the current JSP page. It must NOT beaccessible to any other page including those that this page might import. Which JSP standard action canaccomplish this goal?()

    • A、<jsp:useBean id=’pageBean’ type=’com.example.MyBean’ />
    • B、<jsp:useBean id=’pageBean’ class=’com.example.MyBean’ />
    • C、<jsp:makeBean id=’pageBean’ type=’com.example.MyBean’ />
    • D、<jsp:makeBean id=’pageBean’ class=’com.example.MyBean’ />

    正确答案:B

  • 第16题:

    jsp指令包括()

    • A、page指令
    • B、taglib指令
    • C、import指令
    • D、include指令

    正确答案:A,B,D

  • 第17题:

    You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()

    • A、<jsp:insert page=’${bodyURL}’ />
    • B、<jsp:insert file=’${bodyURL}’ />
    • C、<jsp:include page=’${bodyURL}’ />
    • D、<jsp:include file=’${bodyURL}’ />
    • E、<jsp:insert page=’<%= bodyURL %>’ />

    正确答案:C

  • 第18题:

    Which JSTL code snippet can be used to perform URL rewriting?()

    • A、<a href=’<c:url url="foo.jsp"/>’ />
    • B、<a href=’<c:link url="foo.jsp"/>’ />
    • C、<a href=’<c:url value="foo.jsp"/>’ />
    • D、<a href=’<c:link value="foo.jsp"/>’ />

    正确答案:C

  • 第19题:

    单选题
    You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?()
    A

    <jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>

    B

    <jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>

    C

    <jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>

    D

    <jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>


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

  • 第20题:

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


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

  • 第21题:

    单选题
    You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()
    A

    <jsp:insert page=’${bodyURL}’ />

    B

    <jsp:insert file=’${bodyURL}’ />

    C

    <jsp:include page=’${bodyURL}’ />

    D

    <jsp:include file=’${bodyURL}’ />

    E

    <jsp:insert page=’<%= bodyURL %>’ />


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

  • 第22题:

    单选题
    Every page of your web site must include a common set of navigation menus at the top of the page. Thismenu is static HTML and changes frequently,so you have decided to use JSP’s static import mechanism. Which JSP code snippet accomplishes this goal?()
    A

    <%@ import file=’/common/menu.html’ %>

    B

    <%@ page import=’/common/menu.html’ %>

    C

    <%@ import page=’/common/menu.html’ %>

    D

    <%@ include file=’/common/menu.html’ %>

    E

    <%@ page include=’/common/menu.html’ %>


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

  • 第23题:

    单选题
    Your web application views all have the same header, which includes the  tag in the  elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()
    A

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>

    B

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    C

    <jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    D

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>

    E

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>


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