How does the following Java condition translate into s:if test="..."
in struts2?
if(company.getAffiliateId().asInt() != com.foo.bar.Affiliates.XYZ.asInt()){
// do something
}
company.getAffiliateId() returns BigDecimal
com.foo.bar.Affiliates is an enum
This doesn't work:
<s:if test="%{company.affiliateId.asInt() != com.foo.bar.Affiliates.XYZ.asInt() }">
alert("do something");
</s:if>