private void setAttribute() { employeeIdentity = (EmployeeIdentity) iterator.next(); pageContext.setAttribute( "employeeIdentityId", employeeIdentity.getAttributeId() == null ? "" : employeeIdentity.getAttributeId()); pageContext.setAttribute("employeeIdentityCode", employeeIdentity.getAttributeCode()); pageContext.setAttribute("employeeIdentityName", employeeIdentity.getAttributeName()); pageContext.setAttribute("employeeIdentityDescription", employeeIdentity.getDescription()); }
public int doAfterBody() throws JspException { if (iterator.hasNext()) { setAttribute(); return IterationTag.EVAL_BODY_AGAIN; } else { try { bodyContent.writeOut(bodyContent.getEnclosingWriter()); return SKIP_BODY; } catch (IOException ioe) { throw new JspTagException(ioe.getMessage()); } } }