<% 
    RegisterAction aro=new RegisterAction();    
    int count=aro.getLi().size();
%>
<s:iterator value="li" begin="0" end="1">
    <fieldset>
        name     : <s:property value="name"     /><br/>
        password : <s:property value="password" /><br/>
        email    : <s:property value="email"    /><br/>
        gender   : <s:property value="gender"   /><br/>
        country  : <s:property value="country"  /><br/>
    </fieldset>
</s:iterator>
How to set end attribute value dynamically for iteration, reading the count variable ?
If I use end="<%=count%>" this is not working.
If I use end="count" it's working but I am getting same result multiple of numbers if I refresh the page or reload.
 
     
     
     
    
)
– Hearner Jul 27 '15 at 10:52