Is it possible to compare 2 variables in Struts IF statement when one of variables is from <c:foreach>?

佐手、 提交于 2019-12-31 05:47:05

问题


I'm trying to compare attribute value with some value passed from <c:foreach> to <s:if> and it always is false (even though it shouldn't).

<c:forEach items="${liveBuyRequestsId}" var="item">

<s:if test="%{#attr.documentRow.buyRequest.id == item}"> The value of item is Long, same should be for id.

What am I doing wrong?

来源:https://stackoverflow.com/questions/57296753/is-it-possible-to-compare-2-variables-in-struts-if-statement-when-one-of-variabl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!