int index =0;
complete code section
Where did you create the variable "index"?
How are you exposing it to the JSP page?
In any case, if you're just using it as an index for the iterator tag, you don't need to; use the iterator tag's "status" attribute.