问题
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