网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
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’ /” 相关考题
考题 Whichthe JSTLcodesnippetcanbeusedtoimportcontentfromanotherwebresource?() A.c:importurl=*foo.jsp”/B.c:importpage=*foo.jsp”/C.c:includeurl=*foo.jsp”/D.c:includepage=*foo.jsp”/E.ImportingcannotbedoneinJSTL.Astandardactionmustbeusedinstead.

考题 WhichJSTLcodesnippetcanbeusedtoimportcontentfromanotherwebresource?() A.c:importurl=foo.jsp/B.c:importpage=foo.jsp/C.c:includeurl=foo.jsp/D.c:includepage=foo.jsp/

考题 WhichJSPstandardactioncanbeusedtoimportcontentfromaresourcecalledfoo.jsp?() A.jsp:importfile=’foo.jsp’/B.jsp:importpage=’foo.jsp’/C.jsp:includepage=’foo.jsp’/D.jsp:includefile=’foo.jsp’/

考题 WhichJSTLcodesnippetcanbeusedtoperformURLrewriting?() A.ahref=’c:urlurl=foo.jsp/’/B.ahref=’c:linkurl=foo.jsp/’/C.ahref=’c:urlvalue=foo.jsp/’/D.ahref=’c:linkvalue=foo.jsp/’/

考题 当在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.*” %〉

考题 在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、%@ 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”% 

考题 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’ %

考题 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’ /

考题 JSP指令不包括()A、page指令B、taglib指令C、import指令D、include指令

考题 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’ /

考题 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"/

考题 jsp指令包括()A、page指令B、taglib指令C、import指令D、include指令

考题 ()可在JSP页面出现该指令的位置处,静态插入一个文件。A、page指令标签B、page指令的import属性C、include指令标签D、include动作标签

考题 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 %’ /

考题 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?() titleA、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB、jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD、jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 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"/’ /

考题 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.

考题 单选题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:includeB jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 单选题当在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.*” %〉

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

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

考题 单选题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 %’ /

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

考题 单选题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’ %

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

考题 单选题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:insertB jsp:include page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeC jsp:include file=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeD jsp:insert page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:insertE jsp:include page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:include

考题 多选题在J2EE中,对于以下的include指令和include动作,书写正确的是()Ajsp:include page=http://localhost:/8080/my.jsp/B%@ include file=http://localhost:/8080/my.jsp/Cjsp:include file=http://localhost:/8080/my.jsp/D%@ include page=http://localhost:/8080/my.jsp/