Total list length when using the struts 2 tag

I repeat the list using Struts 2 tags.

<s:iterator value="popUpScreenDetailsList" status ="rowCounter">
    //do something
<s:/iterator>

Is there a way I can get the length of a list without iteration?

The motivation to do this is to use javascript to check the checkboxes.

+5
source share
3 answers

If it is a Java List object, you can also get the length (size) on

<s:property value="%{getPopUpScreenDetailsList().size()}"/>

+7
source
<s:property value="popUpScreenDetailsList.size"/>
+3
source

If it is a Java List object, you can also get the length (size) on

not getPopUpScreenDetailsList (). size ()

0
source

All Articles