0
<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}
Samuel Philipp
  • 10,631
  • 12
  • 36
  • 56
  • You can refer this link - http://struts.1045723.n5.nabble.com/how-get-index-value-at-logic-iterate-td3455167.html. By the way your question is missing lot of details which other users would certainly need to look into your issue – Arun Sudhakaran Feb 22 '19 at 06:20

1 Answers1

1

Remove encasing ${} symbol from ${arrayIndex} to get:

${arrayList[arrayIndex].object}

sɐunıɔןɐqɐp
  • 3,332
  • 15
  • 36
  • 40
Maurice Perry
  • 9,261
  • 2
  • 12
  • 24