The equals JSP function is a cover over Java's equal function that handles objects that are null, contain zero, or more white spaces. In such situations, the two objects are considered equal.
boolean equals(Object obj1, Object obj2)
obj1, obj2 - Required. The two objects that must be compared.
This example shows how this function makes string comparisons.
<% String sAvailable="";
if(equals(resolveValue("xml:/InventoryInformation/Item/@TrackedEverywhere"),
"N"))
sAvailable=getI18N("Available") + ": " + getI18N("INFINITE");
else
sAvailable=getI18N("Available")
+ ": " +resolveValue("xml:/InventoryInformation/Item/@AvailableToSell");
%>