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: Cookie userCookie = new Cookie("user" ,username); 8: Cookie authCookie = new Cookie("authenticated" ,"1" ); 9: 10: response.addCookie(userCookie); 11: response.addCookie(authCookie); 12: %>