Exemplo n.º 1
0
  public String getUser() throws Exception {
    ActionContext context = ActionContext.getContext();

    Map<String, Object> session = context.getSession();
    Member member = new Member();
    member.setMemberId((String) session.get("member.memId"));
    member.setMemberId((String) session.get("member.memPw"));

    // log.debug("Log.Debug값 = " + member.toString());
    member = (Member) SqlMapConfig.selectOneEmn("login", member);

    return "success";
  }
Exemplo n.º 2
0
  @Override
  public String execute() throws Exception {
    ActionContext context = ActionContext.getContext();

    Map<String, Object> session = context.getSession();

    member = new Member();
    // member.setMemId((String)session.get("memId"));
    member.setMemberId(memId);
    member.setMemberPw(memPw);
    member.setMemberName(memName);
    member.setMemberEmail(memEmail);

    SqlMapConfig.updateEmn("updateMember", (SqlMapUsableObj) member);
    log.debug("Log UserUpdate memId = " + member.getMemberId());

    session.put("member", member);
    context.setSession(session);

    return "success";
  }