1: <% 2: String username = request.getParameter("username"); 3: String password = request.getParameter("password"); 4: if (username==nill || password==null || !isAuthenticatedUser(usename, password)) { 5: throw new MyException("인증 에러"); 6: } 7: // 사용자 정보를 세션에 저장한다. 8: HttpSession ses = new HttpSession(true); 9: ses.putValue("user",username); 10: ses.putValue("authenticated","1" ); 11: %>