to check jstl null value

Hello sir,

I am using jstl in my application.

i am using the following code to display my generic name.

<c:forEach var="stone" items="${stones}" varStatus="status">

<c:out value="${stone.genericName}"/>

</c:forEach>

I need to print only if, its(<c:out value="${stone.genericName}"/>) not null.

What should i do to check if "stone.genericName" is null.?

With Regards...

[450 byte] By [chahalkhushwindera] at [2007-11-27 6:12:00]
# 1
u can use <c:if> statementi.e <c:if test="${variable!=''}"><c:out value="${varible}"/></c:if>
loves_javaa at 2007-7-12 17:18:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanx a lot loves_java :)
chahalkhushwindera at 2007-7-12 17:18:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
ur welcome..
loves_javaa at 2007-7-12 17:18:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...