You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ha...@informatiefabriek.nl on 2003/05/07 15:20:03 UTC
Using JSTL to check for empty attribute
Hi all,
I used to check for empty attributes with the:
<logic:present name="variableToCheckFor">
syntax. I would like to do the same thing using JSTL but I'm stuck here.
Can you guys help?
I use:
<c:choose>
<c:when test="${corrections == null} ">
<!-- display some html -->
</c:when>
<c:otherwise>
<!-- display some other html -->
</c:otherwise>
</c:choose>
Although when I open the page the variable corrections is not null, it
still displays the content in the 'otherwise' section.
'corrections' by the way is a Collection.
Can you help?
Thanks,
Harm de Laat
Informatiefabriek
The Netherlands
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org