I have two items from my model and I want to iterate them at the same using jstl foreach. how can I achieve this using a correct syntax?
You can call varStatus.index to get the index of the current round of iteration, and then use it as a lookup for the second list.
varStatus.index
For example, if you have two lists people.firstnames and people.lastnames you can do:
people.firstnames
people.lastnames
${p} ${people.lastnames[status.index]}