commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beer, Christian" <Christian.B...@Diron.DE>
Subject [Jelly] Problem using "/" or "div" and "%" or "mod"...
Date Tue, 17 Jun 2003 14:52:56 GMT
Hi!

I tried using "/", "div", "%" and "mod" but none of it seems to work.

Demo-xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<j:jelly trim="true" xmlns:j="jelly:core"
         xmlns:fmt="jelly:fmt" xmlns:util="jelly:util">
<j:forEach var="i" begin="0" end="10" step="1">
  ${i}, ${i % 3}, ${i div 3}, ${i / 3}
</j:forEach>
</j:jelly>

Output:

0, , , 1, , , 2, , , 3, , , 4, , , 5, , , 6, , , 7, , , 8, , , 9, , , 10, ,
, 


Thanks in advance,

Christian Beer 

Mime
View raw message