예제 #1
0
  @Override
  public int doEndTag() throws JspException {
    HttpSession httpSession = this.pageContext.getSession();
    Member loginMember = (Member) httpSession.getAttribute("ss_member");

    if (loginMember != null) userId = loginMember.getUserId();

    MyMenuInfo myMenuInfo = new MyMenuInfo();
    myMenuInfo.setUserId(userId);

    elementList = elementsService.getMyMenuInfoList(myMenuInfo);

    if (elementList.size() < 1) return EVAL_PAGE;

    StringBuffer htmlBuf = new StringBuffer();
    this.genMyMenuHtml(htmlBuf);

    // System.out.println(htmlBuf.toString());
    JspWriter w = pageContext.getOut();
    try {
      w.print(htmlBuf.toString());
    } catch (IOException e) {
      // TODO Auto-generated catch block
      throw new JspException(e.toString(), e);
    }
    return super.doEndTag();
  }
예제 #2
0
  @Override
  public IfSusRsp mapRow(ResultSet rs, int arg1) throws SQLException {

    IfSusRsp ifSusRsp = new IfSusRsp();

    ifSusRsp.setEntrNo(rs.getString("entrNo"));
    ifSusRsp.setSusRspSeqno(rs.getString("susRspSeqno"));
    ifSusRsp.setStatus(rs.getString("status"));
    ifSusRsp.setProcessYn(rs.getString("processYn"));
    ifSusRsp.setRstCd(rs.getString("rstCd"));
    ifSusRsp.setRstMsg(rs.getString("rstMsg"));

    /*ifSusRsp.setEvntCd(rs.getString("evntCd"));
    ifSusRsp.setCounselId(rs.getString("counselId"));
    ifSusRsp.setEvntRsnCd(rs.getString("evntRsnCd"));
    ifSusRsp.setResDt(rs.getString("resDt"));
    ifSusRsp.setActDt(rs.getString("actDt"));*/

    Member member = new Member();
    // member.setUserId(rs.getString("operatorId"));
    member.setUserId("1234567890");
    member.setApplicationId(rs.getString("applicationId"));
    ifSusRsp.setOperator(member);

    return ifSusRsp;
  }