pageContext.getRequest().setAttribute(CURRENTINDEX, cursor);
pageContext.setAttribute(CURRENTINDEX, cursor);
    public int doAfterBody() throws JspTagException    {        BodyContent body = getBodyContent();        try        {            body.writeOut(getPreviousOut());        }        catch (IOException e)        {            throw new JspTagException("IterationTag: " + e.getMessage());        }        body.clearBody();        if (index > 0)        {            updateCursor();            pageContext.getRequest().setAttribute(CURRENTINDEX, cursor);            index--;            return (EVAL_BODY_AGAIN);        }        else        {            return SKIP_BODY;        }    }