combine x-taglib with c-taglib on <x:set> and <c-foreach>
can is use a x-taglib var in a c-foreach
like:
<x:set var="logrows" select="$doc/properties/entry[@key='foo.bar']"></x:set>
<c:forEach开发者_高级运维 items="${bar.foo}" var="log" begin="0" step="1" varStatus="i" end="${logrows}">
</c:foreach>
thx
never mind I solved it myself with a kind of preCasting:
<x:set var="tmp" select="$doc/properties/entry[@key='foo.bar']" />
<x:set var="logrows" select='number($tmp)'/>
<c:forEach items="${bar.foo}" var="log" begin="1" step="1" varStatus="i" end="${logrows}">
精彩评论