Which snippet of JSP code returns the latest news headlines in an HTML table, one per row?

Assume that a news tag library contains the tags lookup and item: lookup Retrieves the latest news headlines and executes the tag body once for each headline. Exposes a NESTED page-scoped attribute called headline of type com.example.Headline containing details for that headline. item Outputs the HTML for a single news headline. Accepts an attribute info of type com.example.Headline containing details for the headline to be rendered. Which snippet of JSP code returns the latest news headlines in an HTML table, one per row?
A. <table>
<tr>
<td>
<news:lookup />
<news:item info="${headline}" />
</td>
</tr>
</table>
B. <news:lookup />
<table>
<tr>
<td>
<news:item info="${headline}" />
</td>
</tr>
</table>
C. <table>
<news:lookup>
<tr>
<td>
<news:item info="${headline}" />
</td>
</tr>
</news:lookup>
</table>
D. <table>
<tr>
<news:lookup />
<td>
<news:item info="${headline}" />
</td>
</news:lookup>
</tr>
</table>

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.