<c:set var = "arrayIndex" value = "1"/>
How do I access an arrayList by the index set by the above statement? I tried in this way.
${arrayList[${arrayIndex}].object}
<c:set var = "arrayIndex" value = "1"/>
How do I access an arrayList by the index set by the above statement? I tried in this way.
${arrayList[${arrayIndex}].object}
Remove encasing ${}
symbol from ${arrayIndex}
to get:
${arrayList[arrayIndex].object}