struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Reumann <strut...@reumann.net>
Subject Re: JSTL when...test won't work.
Date Thu, 02 Dec 2004 17:44:15 GMT
Nadia Kunkov wrote the following on 12/2/2004 10:24 AM:

>      <c:when test="${fRoles['manager'] != null}">

You don't want to do this. Comparisons to null won't work. You want to 
use "empty." Change it to

<c:when test="${!empty fRoles['manager']}">

!empty should evaluate both null and empty. (At least I 'think' that's 
right:)

-- 
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message