This question is related to my previous question :
Jsp iterate trough object list
I want to insert counter that starts from 0 in my for loop, I\'ve tried several
what led me to this page is that I set within a page then the inside of an included page I did the increment
and here is the problem
so to solve such a problem, simply use scope="request"
when you declare the variable or the increment
//when you set the variale add scope="request"
//the increment, it can be happened inside an included page
hope this saves your time