Parse XML with JSTL

mziky

New Member
I am trying to get only first record from loop, Or how can I stop this loop after first record?\[code\]<x:parse var="taggedData" xml="${taggedLoad}"/><x:forEach var="item" select="$taggedData//item" varStatus="status"> <h4> <a href="http://stackoverflow.com/go/video/index.jsp?videoId=<str:substring start="5"><x:out select="$item/guid"/></str:substring>" onclick="javascript:loadBCvideo(<str:substring start="5"><x:out select="$item/guid"/></str:substring>); return false;"><x:out select="$item/title" /></a> </h4> <p> <x:out select="$item/description" escapeXml="false" /> </p>\[/code\]
 
Back
Top