<c:choose>, <c:when> | | <c:otherwise>
<c:choose> and <c:when>, <c:otherwise> together implement mutually exclusive conditions, similar toJavaIf else in the.
<c:choose> is generally used as the parent tag for <c:when>, <c:otherwise>.
Eg:
<c:choose>
<c:when test= "${row.v_money<10000}" >
Beginner
</c:when>
<c:when test= "${row.v_money>=10000&&row.v_money<20000}" >
Try your Skill
</c:when>
<c:otherwise>
Business expert
</c:otherwise>
</c:choose>
------------eq (= =), NE (! =), Le (<=), GE (>=), lt (<), GT (>);--------------------------
We often use C tags to traverse the required data, for ease of use, the Varstatus property allows us to implement some of the functions related to the number of rows, such as: odd lines, even line differences, the last line of special processing and so on. The general parameters of the Varstatus attribute are summarized in the first:
${status.index} output line number, starting from 0. ${status.count} output line number, starting from 1. ${status.current} The item (in the collection) of the current iteration ${status.first} Determines whether the current item is the first item in the collection, the return value is true, or false${status.last} determines whether the current item is the last item in the collection. The return value is true or falsebegin, end, step, respectively: Starting sequence, ending ordinal, jumping pace. such as: <c:foreach begin= ' 1 ' end= ' 5 ' step= ' 2 ' items= ' ${list} ' var= ' item ' > means: Operation List collection sinks in the data, not one by one cycle, but per 2 values. This is the 1th, 3, and 5 data in the Operations collection.
"Go" <c> label related knowledge