网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
<jsp:param>经常和()、()以及()动作元素一起使用。
参考答案
更多 “<jsp:param>经常和()、()以及()动作元素一起使用。” 相关考题
考题
在J2EE中,对于标记,描述正确的是()。
A.jsp:param是jsp:include、jsp:forward标记的子标记B.如果aa.jsp有代码:jsp:forwardpage=next.jspjsp:paramname=namevalue=jb-aptech//jsp:forward,则在next.jsp中可以使用request.getParameter(name);把属性name的值取出来C.如果aa.jsp有代码:jsp:forwardpage=next.jspjsp:paramname=namevalue=jb-aptech//jsp:forward,则在next.jsp中可以使用request.getAttribute(name);把属性name的值取出来D.如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面
考题
Yourwebapplicationviewsallhavethesameheader,whichincludesthetitletagintheheadelementoftherenderedHTML.YouhavedecidedtoremovethisredundantHTMLcodefromyourJSPsandputitintoasingleJSPcalled/WEB-INF/jsp/header.jsp.However,thetitleofeachpageisunique,soyouhavedecidedtouseavariablecalledpageTitletoparameterizethisintheheaderJSP,likethis:10.title${param.pageTitle}titleWhichJSPcodesnippetshouldyouuseinyourmainviewJSPstoinserttheheaderandpassthepageTitlevariable?()
考题
JavaBean可以通过相关jsp动作指令进行调用。下面哪个不是JavaBean可以使用的jsp动作指令?()A、〈jsp:useBean〉B、〈jsp:setProperty〉C、〈jsp:getProperty〉D、〈jsp:setParameter〉
考题
在J2EE中,对于标记,描述正确的是()。 A、jsp:param是jsp:include、jsp:forward标记的子标记 B、如果aa.jsp有代码:jsp:forward page="next.jsp"jsp:param name="name" value="jb-aptech" //jsp:forward,则在next.jsp中可以使用request.getParameter("name");把属性name的值取出来 C、如果aa.jsp有代码:jsp:forward page="next.jsp"jsp:param name="name" value="jb-aptech" //jsp:forward,则在next.jsp中可以使用request.getAttribute("name");把属性name的值取出来 D、如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面
考题
下面哪个方法不属于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”%
考题
J2EE中,标记的作用是()。A、jsp:setProperty和jsp:getProperty必须在一个jsp文件中搭配出现 B、就如同session.setAttribute()一样,来设置属性/值对C、和jsp:useBean动作一起使用,来设置bean的属性值 D、就如同request.setAttribute()一样,来设置属性/值对
考题
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
考题
单选题JavaBean可以通过相关jsp动作指令进行调用。下面哪个不是JavaBean可以使用的jsp动作指令?()A
〈jsp:useBean〉B
〈jsp:setProperty〉C
〈jsp:getProperty〉D
〈jsp:setParameter〉
考题
多选题在J2EE中,对于标记,描述正确的是()。Ajsp:param是jsp:include、jsp:forward标记的子标记B如果aa.jsp有代码:jsp:forward page=next.jspjsp:param name=name value=jb-aptech //jsp:forward,则在next.jsp中可以使用request.getParameter(name);把属性name的值取出来C如果aa.jsp有代码:jsp:forward page=next.jspjsp:param name=name value=jb-aptech //jsp:forward,则在next.jsp中可以使用request.getAttribute(name);把属性name的值取出来D如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面
考题
单选题JSP的动作指令中param指令用于()A
在JSP页面中动态包含一个文件B
重定向网页C
向需要包含的动态页面或要转向的动态页面传递参数D
在JSP中加载Javaapplet小程序
考题
单选题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
考题
单选题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
考题
填空题JSP有七项标准的“动作元素”,本章学习四种“动作元素”分别是(),(),(),()。
热门标签
最新试卷