Ben J. Christensen

Software Development and Other Random Stuff

JSTL: List Sizes

This link is useful for getting list sizes etc using JSTL:

http://forum.java.sun.com/thread.jspa?threadID=484828&messageID=3731101

Here is the piece for testing a certain size:

<c:if test=“${osms[1] ne null}”>

And if using JSTL 1.1 to get the size:

<c:if test=“${fn:length(list) > 1}”>

Advertisement

Filed under: Code

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Twitter Updates

View Ben Christensen's profile on LinkedIn
Follow

Get every new post delivered to your Inbox.