Search code examples
javaapachestrutsstruts-1

Using break; in Struts1 <logic:iterate>


I am using Struts 1.2 for my Web Application. I am iterating through a garments collection and searching whether any of the garments price is greater than $1000 or not. If any of them satisfies the condition then no need to iterate through the remaining garments collection, simple break and come out of the iterator.

For comparing the price, I am using , it is present inside the .

I am not able to break out from the once the garment price condition is satisfied (i.e. >$1000).

Kindly let me know how to break the iteration in struts 1.2.

Regards,


Solution

  • Struts 1 does not have any in-built tag for breaking the <logic:iterator> in between.