struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Reumann <>
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 


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message