Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

to check jstl null value

843838Jun 2 2007 — edited Jul 4 2008
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...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2008
Added on Jun 2 2007
5 comments
1,756 views