1. C:foreach
<c:foreach items="${map.value}"var="obj" varstatus="varstatus" begin="0" end=" 4 ">
Note that Varstatus is equivalent to a for loop counter, starting with 1, with ${varstatus.count} to get the value of the counter. The begin is counted from the user's own defined number. This loops the map so that you can use ${obj.key} to get the map's Kay,${obj.value} to get the value of the map.
Sometimes we just need to do the processing at the first loop, there are two ways:
1.1 Using Varstatus count is a trickle of several loops
1.2 Use inside the loop
<c:iftest="${zbzpd==null}"> <p>do something</p></c:if><c:iftest="${zbzpd==null}"> <c:Set var="ZBZPD"Value="1"Scope="page"></C:Set>
</C:if>
Here is the definition of a variable ZBZPD, which can then be obtained by means of an El expression. value is the corresponding values. Scope is the scope that can make page,session and so on.
How to use C tags