Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conditional logic on List  RSS feed

 
Ryan Day
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 65832
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would very much depend uon what congresses is set to. I strongly advise you add more detail to your posts.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!