Meaningless Drivel is fun!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60048
    
  65

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
 
Similar Threads
Best Practices for Presentation Layer
Use of out.write() method
Related to Javascripet SELECT object
logic:match , logic:notEqual not working
JSP Struts/JSTL Form problem