当前位置:SCWCD(310-083)题库

问题:

[单选]

Assume a JavaBean com.example.GradedTestBean exists and has two attributes. The attribute name is oftype java.lang.String and the attribute score is of type java.lang.Integer. An array of com.example.
GradedTestBean objects is exposed to the page in a request- scoped attribute called results. Additionally,an empty java.util.HashMap called resultMap is placed in the page scope. A JSP page needs to add the firstentry in results to resultMap, storing the name attribute of the bean as the key and the score attribute of thebean as the value.
Which code snippet of JSTL code satisfies this requirement?()

A . ${resultMap[results[0].name] = results[0].score}
B . <c:set var="${resultMap}" key="${results[0].name}" value="${results[0].score}" />
C . <c:set var="resultMap" property="${results[0].name}"> ${results[0].value}</c:set>
D . <c:set var="resultMap" property="${results[0].name}" value="${results[0].score}" />
E . <c:set target="${resultMap}" property="${results[0].name}" value="${results[0].score}" />

广告作品中表现出的言语和文字部分大体指的是广告的标题、正文、()、随文等几项内容 , 它体现着一篇广告作品的整体结构。 营养物质 《条例》规定,对于全体或者多数党员严重违犯党纪的党组织,应当予以() 解散。 改组。 合并。 解体。 坚持把思想理论建设放在首位,必须提高全党运用科学理论改造主观世界和客观世界的能力,使党的理论和实践始终()。 体现时代性。 充满先进性。 把握规律性。 富于创造性。 发挥药效最快的给药途径是() 口服。 外敷。 吸入。 皮下注射。 静脉注射。

Assume a JavaBean com.example.GradedTestBean exists and has two attributes. The attribute name is oftype java.lang.String and the attribute score is of type java.lang.Integer. An array of com.example.
GradedTestBean objects is exposed to the page in a request- scoped attribute called results. Additionally,an empty java.util.HashMap called resultMap is placed in the page scope. A JSP page needs to add the firstentry in results to resultMap, storing the name attribute of the bean as the key and the score attribute of thebean as the value.
Which code snippet of JSTL code satisfies this requirement?()

参考答案:

  参考解析

本题暂无解析

在线 客服