just came across what seems like a small inconsistency which took me a while to figure out. It seems when I want to do a check for null, if it is test="${thing eq null}" it wont work: I have to put null in apostrophes - test="${thing eq 'null'}"
But with test="${thing ne null}" it works without apostrophes.
This is my actual code:
<c:set var="user"><%=request.getRemoteUser() %></c:set>
<c:set var="LOG_OFF"><%=BlackSailConstants.LOG_OFF %></c:set>
<c:set var="logOff1" value="${param[LOG_OFF]}"/>
<c:set var="logOff2" value="${sessionScope[LOG_OFF]}"/>
<c:choose>
<c:when test="${user eq 'null' or logOff1 ne null or logOff2 ne null}">
<!-- show login link //-->Am I doing something wrong, or is this a kind of inconsistency in the way null equality is tested?
Regards Adam
-- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
