File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Conditional logic on List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Conditional logic on List " Watch "Conditional logic on List " New topic

Conditional logic on List

Ryan Day
Ranch Hand

Joined: Apr 03, 2006
Posts: 87
I'm passing a java.util.List object to my JSP, and I only want to display a section of the JSP code if the List is not empty.

I tried the following:

But I got the following error:

Q: What's the best way to perform this logic based on the number of items in the list?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

That would very much depend uon what congresses is set to. I strongly advise you add more detail to your posts.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Conditional logic on List
jQuery in Action, 3rd edition