Use logic:iterate tag to iterate over the list in the jsp...
And in the action, set a property on from which tells what is the index of last bean...
And use logic equal tag to decide if a given iteration is iterating on last
bean..using the above mentioned property...
And only for last bean use
I do something like this. It may not compile (esp. myformbean.getListSize()) and
should use logic:iterate. Hope it helps;
JSP;
<%
int i;
for (i = 0; i < myformbean.getListSize(); i++) {
String fieldName = "value(" + i + ")";
%>
<%
}
String fieldName = "value(" + i+1 + "
2 matches
Mail list logo