<c:if> <c:if test="{paramValue.sampleValue[2] == 12}" var"visits" /> It is 12 </c:if> ${visits} 将判断得结果保存在visits中
<c:choose><c:when><c:otherwise>: <c:choose> <c:when test="$paramvalues.sampleValue[2] == 11" /> not 12 not 13,it is 11 </c:when> <c:when test="$paramvalues.sampleValue[2] == 12" /> not 11 not 13,it is 12 </c:when> <c:when test="$paramvalues.sampleValue[2] == 13" /> not 11 not 12,it is 13 </c:when> <c:otherwise> not 11 12 13 </c:otherwise> </c:choose>
<x:set>: <c:set value="this is andy" var="oneString" />
<x:if> <x:if test="{paramValue.sampleValue[2] == 12}" var"visits" /> It is 12 </x:if> ${visits} 将判断得结果保存在visits中
<x:choose><c:when><c:otherwise>: <x:choose> <x:when test="$paramvalues.sampleValue[2] == 11" /> not 12 not 13,it is 11 </x:when> <x:when test="$paramvalues.sampleValue[2] == 12" /> not 11 not 13,it is 12 </x:when> <x:when test="$paramvalues.sampleValue[2] == 13" /> not 11 not 12,it is 13 </x:when> <x:otherwise> not 11 12 13 </x:otherwise> </x:choose>