How to define empty or null. C tags from JSTL?

terry73

New member
How can I check if a String is null or empty using JSTL's c tags?

I have a variable called var1 that I can show, but I'd like to add a comparator to validate it.
Code:
<c:out value="${var1}" />

When it is null or empty, I want to validate it (my values are strings).
 
Top