<S: iterator value = "% {entitylist}" id = 'vo' status = 'st'> <tr <s: If test = "# St. even "> class =" sprittr "</S: If >>< S: If test =" # St. first "> <TD align =" center "rowspan =" <s: property value = "entitylist. size () "/>"> <s: property value = "1"/> </TD> </S: If></Tr> </S: iterator>
Here we mainly want to get the length of entitylist from the beginning, so we solved it with <s: property value = "entitylist. Size ()"/> ~
<S: iterator> </S: iterator> some attributes:
How to use status in <s: iterator>
1: # status. Odd whether the current element index has an odd number of rows
2: # status. Even whether the index of the current element is even
Line
3: # status. Count: several elements are iterated currently.
4: # status. Index current element index, starting from 0 "# status. Count = # status. index + 1 』
5: # status. First: whether the current is the first element
6: # status. Last whether the current element is the last one
7: # status. Modules (INT) current number of rows modulo