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"; }
@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"; }