Check a collection size with JSTL
How can I check the size of a collection with JSTL? Something like: <c:if test=”${companies.size() > 0}”> </c:if> 4 Answers 4
How can I check the size of a collection with JSTL? Something like: <c:if test=”${companies.size() > 0}”> </c:if> 4 Answers 4
I want to output some HTML code based on some condition in a JSP file. if (condition 1) { Some HTML code specific for condition 1 } else if (condition 2) { Some HTML code specific for condition 2 } How can I do that? Should I use JSTL? 13 Answers 13
Is there an if-else tag available in JSTL? 7 Answers 7
How can I validate if a String is null or empty using the c tags of JSTL? I have a variable of name var1 and I can display it, but I want to add a comparator to validate it. <c:out value=”${var1}” /> I want to validate when it is null or empty (my values are … Read more