• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logic Iterate

 
Jay Richards
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using Logic iterate to show my list.
But i want to be able to show a "No record found"
just in case login:iterate did no do any iteration. is that possible?
thanks a log everyone!
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can either write a custom tag, or you can use the logic:equal tag against the collection. If your collection is a List, you can use
<logic:equal name="myBean" property="myProperty"
value="[]">
No rows returned.
</logic:equal>
 
Matthew Marquand
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the logic:empty, logic:present, and the bean:size tags. You can use those depending on which version of struts you are using and if your list is null or just empty.
Good luck.
[ February 24, 2003: Message edited by: Thomas Paul ]
 
Jay Richards
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic