Which custom tag invocation outputs the contents of the variable exposed by the quote tag?

Assuming the tag library in the exhibit is imported with the prefix stock, which custom tag invocation outputs the contents of the variable exposed by the quote tag?
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sum.com/xml/ns/j2ee"
xmln:schemaLocation="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sum.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd" version="2.0">
<tlib-version>1.0</tlib-version>
<short-name>stock</short-name>
<uri>http://example.com/tld/stock</uri>
<tag>
<name>quote</name>
<tag-class>com.example.QuoteTag</tag-class>
<body-context>empty</body-context>
<variable>
<name-from-attribute>var</name-from-attribute>
<scope>AT_BEGIN</scope>
</variable>
<attribute>
<name>symbol</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>var</name>
<required>true</required>
<rtexprvalue>falsh</rtexprvalue>
</attribute>
</tag>
</taglib>
A. <stock:quote symbol="SUNW" />
${var}
B. ${var}
<stock:quote symbol="SUNW" />
C. <stock:quote symbol="SUNW">
${var}
</stock:quote>
D. <stock:quote symbol="SUNW" var="quote" />
${quote}
E. <stock:quote symbol="SUNW" var="quote">
<%= quote %>
</stock:quote>

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.