return "registererror"; 99. } 100. } else { 101. ServletActionContext.getRequest().setAttribute("register", 102. "acerror"); 103. return "registererror"; 104. } 105. } 106. 107. public String login() { 108. if (((String) ServletActionContext.getRequest().getSession() 109. .getAttribute("checkcode")).equalsIgnoreCase(acode)) { 110. Member user = memberService.login(member.getEmail(), 111. member.getPass()); 112. 113. if (user == null) { 114. ServletActionContext.getRequest() 115. .setAttribute("login", "error"); 116. return "loginerror"; 117. } else { 118. ServletActionContext.getRequest().getSession() 119. .setAttribute("user", user); 120. return "login"; 121. } 122. } else { 123. ServletActionContext.getRequest().getSession() 124. .setAttribute("login", "acerror"); 125. return "l上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|