&t;c:choose>tag很象Java中的if-ese语句。&t;c:when>tag就象if and ese if语句,&t;c:otherwise>tag就象最后的ese语句。&t;c:choose>tag包含了一系列的&t;c:when>tag,每一个&t;c:when>tag都有一个包含表达式的test属性。第一个&t;c:when>tag体的test表达式返回true,这个tag体执行后包含在输出中。如果没有一个&t;c:when>的test表达式返回true,就执行&t;c:otherwise>tag体,将结果送到输出。