betweenGo

Test if empty in JSTL

by on Jun.26, 2008, under JSTL

Singur suflet pustiu on Flickr

(Photo: Singur suflet pustiu by dani81_const)

This article, Expression Language Overview” href=”http://www.informit.com/articles/article.aspx?p=30946″>InformIT: The JSTL Expression Language > Expression Language Overview, informed me on how to test if something is empty or not.

Empty?

<c:if test="${empty foo}">...</c:if>

Not empty?

<c:if test="${not empty foo}">...</c:if>


Share

Related posts:

  1. Upgrading to JSTL 1.1
  2. Get JSTL Vars from PageContext
  3. JSTL for current URI
  4. Accessing RepositoryItems with JSTL
  5. Display formatted HTML text

:, ,

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!