"Go" <c> label related knowledge

Source: Internet
Author: User

<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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.