wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts Tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Tags" Watch "Struts Tags" New topic
Author

Struts Tags

Jamie Lee
Greenhorn

Joined: Jan 31, 2007
Posts: 17
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
Jamie Lee
Greenhorn

Joined: Jan 31, 2007
Posts: 17
Ok, thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts Tags
 
Similar Threads
Passing form data into and out of popup windows
How do i integrate different modules
how to find if string contains string from enum or hash without loop
Options Tag not Recognizing Collection
Difference between Java 5 adn Java 1.4