public int doStartTag() throws JspException
{
this.setIterateResultSet(new IterateResultSet());
ResultSet rs = (ResultSet) pageContext.getAttribute(getResultSet(), RESULT_SET_SCOPE);
this.getIterateResultSet().setIndex(this.getStart());
this.getIterateResultSet().setResultSet(rs);
this.getIterateResultSet().setMemberName(this.getResultMember());
pageContext.setAttribute(this.getIterator(), this.getIterateResultSet(), RESULT_SET_SCOPE);
if (this.getEnd() <= 0 || this.getIterateResultSet().getIndex() <= this.getEnd())
{
if (rs != null)
{
if (this.getIterateResultSet().getIndex() <= rs.listItems(this.getResultMember()))
{
return EVAL_BODY_BUFFERED;
}
}
else