I iterate a list using Struts 2 tags.
<s:iterator value="popUpScreenDetailsList" status ="rowCounter">
//do something
<s:/iterator>
Is there a way, by which I can get the length of the list without iterating?
The motivation to do it, is to use javascript to validate checkboxes.
If it's a Java List object, then you can also get the length (size) by
<s:property value="%{getPopUpScreenDetailsList().size()}"/>
<s:property value="popUpScreenDetailsList.size"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With