I am using the struts tag inside of a struts iterator tag to control what displays in one of my fields as follows.
<s:iterator value="commentViewList" >
<s:if test="%{documentInfo.documentId != 0}">
<div class="col-sm-2 col-xs-12 text-center"><s:a href="%{documentLink}" tabindex="19"><s:text name="yes"/></s:a></div>
</s:if>
<s:else>
<div class="col-sm-2 col-xs-12 text-center"><s:property value=""/></div>
</s:else>
It works fine but I would like to replace the 0 in the test with a reference to a noValueId int variable I have defined in my action page. That will allow me to make one change if I ever need to change what I compare documentInfo.documentId to. I use this value in my action page also. Any help would be appreciated!