${resultMap[results[0].name] = results[0].score}
<c:set var=${resultMap} key=${results[0].name} value=${results[0].score} />
<c:set var=resultMap property=${results[0].name}> ${results[0].value}</c:set>
<c:set var=resultMap property=${results[0].name} value=${results[0].score} />
<c:set target=${resultMap} property=${results[0].name} value=${results[0].score} />
第1题:
Given that a scoped attribute cart exists only in a user’s session, which two,taken independently,ensurethe scoped attribute cart no longer exists?()
第2题:
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?()
第3题:
A.The attribute "STATUS" is set to the string EXTERNAL_AUTH
B.The attribute "PRIV_USER" contains the username
C.The event type that is given in the attribute "NAME" is EXTERNAL_AUTH
D.There is no differentiation between native and external authentication events
E.External authentication is managed through external auditing logs
F.The "PROXY_PRIV" user shows a username if external authentication is used
第4题:
You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()
第5题:
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
第6题:
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()
第7题:
Which XSL if statement checks for the existence of a homepage attribute within an STS Universal User XML structure?()
第8题:
A.<xsl:iftest="//stsuuser:AttributeList/stsuuser:Attribute[attr=‘homepage‘]">
B.<xsl:iftest="//stsuuser:AttributeList/stsuuser:Attribute[@name=‘homepage‘]">
C.<xsl:if-exists="//stsuuser:AttributeList/stsuuser:Attribute/custom:Homepage">
D.<xsl:if-exists="//stsuuser:AttributeList/stsuuser:Attribute[@name=‘homepage‘])>
第9题:
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()
第10题:
A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page?()