All roads lead to JavaRanch
Christophe Verré wrote:You can use JSTL's forEach tag. But don't use var="item". Use the varStatus attribute instead, to access the list directly via the current loop index. I let you figure out how to write it.
Christophe Verré wrote:Why "2*" ? status.index will return you the proper index.
Christophe Verré wrote:put your helmet on.
[Asking smart questions] [About Bear] [Books by Bear]
Bear Bibeault wrote:Then why do you not have 2 arrays, or an array whose elements are an array with 2 elements?