Jsp 检查显示标记中的列表值

Jsp 检查显示标记中的列表值,jsp,displaytag,Jsp,Displaytag,我有一个显示标签,我想在其中检查特定条件的值,并以两种方式显示该值 <c:choose> <c:when test="${itemList.count>0}"> //display one way </c:when> <c:otherwise>

我有一个显示标签,我想在其中检查特定条件的值,并以两种方式显示该值

             <c:choose>
                    <c:when test="${itemList.count>0}">
                    //display one way
                    </c:when>
                    <c:otherwise>
                    //display another way
                    </c:otherwise>
            </c:choose>

当我像这样使用时,一切正常。使用


//单向显示
//另辟蹊径
<display:column class="colCount" property="count"
                        title="${titleCount}" sortable="true" headerClass="sortable"/>
            <c:choose>
                   <c:when test="${count>0}">
                    //display one way
                    </c:when>
                    <c:otherwise>
                    //display another way
                    </c:otherwise>
            </c:choose>