<c:if test="${! empty products}"> ... Quoting Ajay Patil <[EMAIL PROTECTED]>:
> Hi, > > I am trying to use the JSTL tag to test if a collection is empty. > > In terms of java code, I would like to write.. > > if (products != null && products.size() > 1) { > .. > } > > I have written the following in the JSP. > > <c:if test={! empty products}> > ... > </c:if> > > The above isnt working. The test always fails even if the > products collection has size >= 1. > > It will be of great help to me, if someone can point out the > correct way of writing the tag. > > Thanks, > Ajay -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]