Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conditional logic on List

 
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
Pie
Posts: 64623
86
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