2017  Kodetalk | Feedback | Privacy Policy | Terms | About

How to get index from using JSTL forEach code

I need to get the index of loop done by JSTL forEach. How to get that?


Directly you can call ${variableName.index}. It will give the index of each iteration done by forEach.

Answer is