コード例 #1
0
  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());
  }
コード例 #2
0
 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());
     }
   }
 }