我在我的jsp文件中有一个显示标签。它像..如何给c:if标签显示标签
<display:table id="currentRow" name="${ListObj}" requestURI="" sort="page" defaultsort="2"
pagesize="5" class="displayTable">
<display:caption><font color="red">Users List</font></display:caption>
<display:column property="ID" title="Role" ></display:column>
<display:column property="Name" title="User Name" sortable="true"></display:column>
<c:if test="%{currentRow.ID ne '1'}">
<display:column >
<a href="javascript:editUserJS('editUser.jav?id=${currentRow.ID}');"><i>edit</i></a>
</display:column>
</c:if>
</display:table>
我已经写的代码<c:if test="%{currentRow.ID ne '1'}">
为我不想显示ID为1的修改链接用户,但该条件不工作。即显示标签中没有行显示编辑链接。但如果我给<c:if test="%{currentRow.ID eq '1'}">
,编辑链接将显示。
如何让它显示除ID = 1之外的所有行???
条件应该是'$ {currentRow.ID ne'1'}'还是它是一个错字? –
雅我想检查ID是否有值1 –
如果$ {currentRow.ID eq'1'}工作,你尝试了'$ {not(currentRow.ID eq'1')}'? –