% System.out.println("These indexed shall be shown on gui "+(ArrayList)request.getSession().getAttribute("selectedIndexes")); % // ArrayList value can be 2,3,5,9 s:iterator var="itr" value="#session.completeArrayList" status="stat" s:if //i
<% System.out.println("These indexed shall be shown on gui "+(ArrayList)request.getSession().getAttribute("selectedIndexes")); %> // ArrayList value can be 2,3,5,9 <s:iterator var="itr" value="#session.completeArrayList" status="stat"> <s:if > //if stat.count value present in arraylist(selectedIndexes), then go to if loop </s:if </s:iterator>
我不知道如何检查< s中的arraylist {selectedIndexes}中的%{#stat.count}值:if>环.
我该怎么做
<s:iterator var="itr" value="#session.completeArrayList" status="stat"> <s:if test="#stat.count in #session.selectedIndexes"> </s:if </s:iterator>