• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Tags

 
Jamie Lee
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

Does anyone know if there is any way to use the struts tag library to find out if a collection contains a value without iteration? The problem is that I can find out if a collection contains a value, but I don't know how to find out if a collection does not contain a value. I'm trying to avoid using scriptlets if possible...

Thanks!
Jamie
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To my knowledge, there is no Struts tag that will do this. If your application uses Servlet Version 2.4 or above, you could write your own JSTL function to do this. Otherwise, you're pretty much stuck with using a scriptlet.
 
Jamie Lee
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic