Did you see the difference between
<c:set var="var1">""</c:set>
and
<c:set var="var2"></c:set> ?
The 1st one in Java is something like
String var1 = " \"\"";
and the later one is like,
String var2 = "";
So, if you try to compare var1 with empty, it will retur false as \"\" is not empty.
Cheers,
Comments
Post a Comment