aspose file tools
The moose likes Struts and the fly likes Struts Tags Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Struts Tags
 
Similar Threads
How do i integrate different modules
Difference between Java 5 adn Java 1.4
how to find if string contains string from enum or hash without loop
Options Tag not Recognizing Collection
Passing form data into and out of popup windows