I'm using JSTL and want to check whether an object is a String or a Collection.
fn:length returns results on both types (stringsize or number of elements in the collection).
<c:if test="${fn:length(item)>1}">
<c:out value="${fn:length(item)} " />
</c:if>
How can I determine which one I've got?