Is there a way to do an exclusive or in EL? I have two variables. I want to check if only one of them is empty at a time. I understand I can do this manually by doing the following but I wanted to know if there is an EL keyword for it?
<c:if test="${(!empty var1 and empty var2) or (empty var1 and !empty var2}>
----Do something here..
</c:if>
EL doesn’t have an XOR operator, but since both expressions return boolean already, just compare them by
!=.