2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

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?

userimage

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

Answer is