pageContext.getRequest().setAttribute(CURRENTINDEX, cursor);
pageContext.setAttribute(CURRENTINDEX, cursor);
    public int doStartTag() throws JspTagException    {        folder = (Folder) pageContext.getRequest().getAttribute("folder");        if (null == folder) { throw new JspTagException(                "no folder Attribute found in request"); }        int i = 1;        try        {            i = Integer.parseInt(folder.getTotalIndexes());        }        catch (NumberFormatException e1)        {            // empty String, leave preset 1        }        index = totalIndexes = i;        if (index > 0)        {            cursor = new IndexIteratorCursor();                        updateCursor();            pageContext.getRequest().setAttribute(CURRENTINDEX, cursor);            index--;            return (EVAL_BODY_AGAIN);        }        else        {            return SKIP_BODY;        }    }