开发者

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}">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜