aspose file tools*
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
Author

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?


SCJP, SCWCD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Conditional logic on List